View source: R/ReformatDataframe.R
modifyColTypes | R Documentation |
Return suggested appropriate dtypes for each column in rawDataFrame
modifyColTypes(rawDataFrame, cols = TRUE, dtype = FALSE, custom = FALSE)
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) |
Return a new data.frame with appropriate dtypes suggested for each cols
library(handyFunctions) data(people) modifyColTypes(people)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.