Learn R Programming

PKPDmisc (version 2.1.2)

cols_to_numeric: convert column to type numeric

Description

convert column to type numeric

Usage

cols_to_numeric(df, col_names)

Arguments

df

dataframe

col_names

vector of column names or indices to convert to numeric

Examples

Run this code
# 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