modifyColTypes: Return suggested appropriate dtypes for each column in...

View source: R/ReformatDataframe.R

modifyColTypesR Documentation

Return suggested appropriate dtypes for each column in rawDataFrame

Description

Return suggested appropriate dtypes for each column in rawDataFrame

Usage

modifyColTypes(rawDataFrame, cols = TRUE, dtype = FALSE, custom = FALSE)

Arguments

rawDataFrame

Raw data.frame

cols

Specify cols which you want to change its dtypes when custom is FALSE (default: TRUE, for all cols)

dtype

Specify indexed matched dtypes whcih you want to update when custom is FALSE (default: FALSE, for automatically update)

custom

Option whether set to auto/custom , you can specify your custom dtypes for cols given when setting to TRUE (default: FALSE, for auto)

Value

Return a new data.frame with appropriate dtypes suggested for each cols

Examples

library(handyFunctions)
data(people)
modifyColTypes(people)


handyFunctions documentation built on Aug. 22, 2022, 5:06 p.m.