Description Usage Arguments Examples
View source: R/cols_to_numeric.R
convert column to type numeric
1 | cols_to_numeric(df, col_names)
|
df |
dataframe |
col_names |
vector of column names or indices to convert to numeric |
1 2 3 4 | ## Not run:
df <- cols_to_numeric(df, c("DOSE", "TRT")) # will convert dose and TRT columns to numeric
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.