Description Usage Arguments Value Examples
View source: R/factor_level_collapsing.R
For a given (standard) gray code, and a variable, this function returns the collapsed version of this factor based on this given gray code
1 | factor_level_collapsing(variable, graycode)
|
variable |
a given variable |
graycode |
a given graycode |
a collapsed version of the input variable
1 2 | data(sweden)
factor_level_collapsing(sweden$Make, c(1,2,3,4,5,6,7,8,8))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.