powered by
convert column to type numeric
cols_to_numeric(df, col_names)
dataframe
vector of column names or indices to convert to numeric
# NOT RUN { df <- cols_to_numeric(df, c("DOSE", "TRT")) # will convert dose and TRT columns to numeric # }
Run the code above in your browser using DataLab