powered by
Create new factor variable by crossing levels in several variables
CrossStrata(by, sep = "-", returnb = FALSE, asNumeric = FALSE, byExtra = NULL)
Dataframe or matrix with several variables
Used to create new level names
When TRUE an overview of original variabels according to new levels are also retuned.
When TRUE the new variable is numeric.
Contains the same variables as by and represents another data set.
The new variable
New variable according to byExtra
Overview of original variabels according to new levels
# NOT RUN { CrossStrata(cbind(factor(rep(1:3,2)),c('A',rep('B',5)) )) # }
Run the code above in your browser using DataLab