Description Usage Arguments Value Examples
Groups factor values according to mapping generated as an output of a function group.factor. Thus the same grouping can be applied to new datasets. Now it uses dataset itself as a mapping, which is not very efficient. In future releases a proper mapping will be generated and used.
1 | apply.factor.grouping(data, variables, new.data, other.factor = "other")
|
data |
data with already grouped data |
variables |
factors to analyze |
new.data |
new data frame with factor variables to convert |
other.factor |
name of the "other" group |
new data frame with added columns named group.X (where X is variable name)
1 | new.df <- apply.factor.grouping(df, c('var1','var2','var3'), new.df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.