Learn R Programming

mikropml (version 1.6.1)

change_to_num: Change columns to numeric if possible

Description

Change columns to numeric if possible

Usage

change_to_num(features)

Value

dataframe with numeric columns where possible

Arguments

features

dataframe of features for machine learning

Author

Zena Lapp, zenalapp@umich.edu

Examples

Run this code
if (FALSE) {
class(change_to_num(data.frame(val = c("1", "2", "3")))[[1]])
}

Run the code above in your browser using DataLab