| varClass | R Documentation |
varClass returns the variable types of a data frame. It is used
internally in several functions of the missForest package.
varClass(x)
x |
A data frame with variables in the columns. |
A character vector of length p, where p is the number of columns in x.
Entries are "numeric" for continuous variables and "factor" for categorical variables.
This function is used internally by missForest and mixError.
Daniel J. Stekhoven [aut, cre]
missForest, mixError, nrmse
data(iris)
varClass(iris)
## We have four continuous and one categorical variable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.