cols_to_numeric: convert column to type numeric

Description Usage Arguments Examples

View source: R/cols_to_numeric.R

Description

convert column to type numeric

Usage

1
cols_to_numeric(df, col_names)

Arguments

df

dataframe

col_names

vector of column names or indices to convert to numeric

Examples

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)

PKPDmisc documentation built on April 14, 2020, 5:49 p.m.