conv.factor | R Documentation |
Convert variables to factors
conv.factor(data, convNames = NULL, exceptNames = NULL, uniqueNum = 5)
data |
Input data frame. |
convNames |
Names of variable to convert, the default is
|
exceptNames |
Names of variables to be excluded from conversion, the
default is |
uniqueNum |
Variables of less than or equal to a specific number of
unique values in the to be converted to factors, the default is
|
A data frame of converted variables.
nhanes.fix <- conv.factor(data = nhanes, convNames = c("age", "hyp"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.