View source: R/DataUnderstanding.R
FeatureByNPS | R Documentation |
A special modification of function FeatureByTargetVariable to incorporate the commonly used Net Promoter Score Variable with three levels (Detractor, Neutral and Promoter)
FeatureByNPS(DataFrame, Feature, NPSVariable)
DataFrame |
data.frame. data.frame under investigation. |
Feature |
vector. Feature variable. |
NPSVariable |
factor. Net Promoter Score with categories. |
: Please make sure that the colors match the categories - Currently, alphabetical order of categories will be used.
# generate a small dataset NPSdata <- data.frame(Feat = sample(x = 1:4, size = 20, replace = T), NPS = sample(x = c("Detractor", "Neutral", "Promoter"), size = 20, replace = T)) FeatureByNPS(DataFrame = NPSdata, Feature = "Feat", NPSVariable = "NPS")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.