RDocumentation
Moon
Learn R
Search all packages and functions
metacoder (version 0.1.2)
convert_numeric_cols: Convert columns to numeric if appropriate
Description
Converts columns in a
data.frame
to numeric is they can be converted without producing
NA
s.
Usage
convert_numeric_cols(table, columns = colnames(table))
Arguments
table
(
data.frame
)
columns
(
character
or
numeric
) A subset of columns to attempt to convert.
Value
data.frame