Description Usage Arguments Examples
View source: R/MarketingAnalytics_functions.R
This function calculates segment means for each segmentation variable based on the segment memberships uncovered in the cluster analysis.
1 |
df |
The data frame of segmentation variables that also inclueds a segment column for segment membership |
1 2 | mydf <- data.frame(age=c(23,45,64,56,55,32,23,45,31,60), wealth=c(1,2,3,3,3,2,1,2,2,3),segment=c(1,2,2,2,2,1,1,2,1,2))
calculate_segment_means(mydf)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.