factor_level_collapsing: Factor collapsing over one factor

Description Usage Arguments Value Examples

View source: R/factor_level_collapsing.R

Description

For a given (standard) gray code, and a variable, this function returns the collapsed version of this factor based on this given gray code

Usage

1
factor_level_collapsing(variable, graycode)

Arguments

variable

a given variable

graycode

a given graycode

Value

a collapsed version of the input variable

Examples

1
2
data(sweden)
factor_level_collapsing(sweden$Make, c(1,2,3,4,5,6,7,8,8))

senhu/FCBMA documentation built on Aug. 6, 2019, 4:56 p.m.