View source: R/crosstab_segmentation.R
crosstab_segmentation | R Documentation |
Create a segment variable by assigning a unique code to every combination of the input variables. Input variables are sorted in descending order, from the left most column to the right most column.
crosstab_segmentation(df, vars)
df |
data.frame of numeric variables |
vars |
variables to be used in the crosstab segmentation. |
df <- rsegmenter::test_seg_unlabelled crosstab_segmentation(df = df, vars = c("seg1","seg2","seg3"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.