crosstab_segmentation: Create a segment variable by assigning a unique code to every...

View source: R/crosstab_segmentation.R

crosstab_segmentationR 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.

Description

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.

Usage

crosstab_segmentation(df, vars)

Arguments

df

data.frame of numeric variables

vars

variables to be used in the crosstab segmentation.

Examples

df <- rsegmenter::test_seg_unlabelled
crosstab_segmentation(df = df, vars = c("seg1","seg2","seg3"))


PrenolanM/rsegmenter documentation built on Aug. 7, 2022, 8:56 p.m.