change_to_num: Change columns to numeric if possible

View source: R/preprocess.R

change_to_numR Documentation

Change columns to numeric if possible

Description

Change columns to numeric if possible

Usage

change_to_num(features)

Arguments

features

dataframe of features for machine learning

Value

dataframe with numeric columns where possible

Author(s)

Zena Lapp, zenalapp@umich.edu

Examples

## Not run: 
class(change_to_num(data.frame(val = c("1", "2", "3")))[[1]])

## End(Not run)

SchlossLab/mikropml documentation built on Aug. 24, 2023, 9:51 p.m.