metacoder (version 0.1.3)

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 NAs.

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