as_nps_cat | R Documentation |
Returns a categorical variable with default values over 1, 2, and 3.
Suited for running multinomial logistic regression.
To calculate the NPS score, use as_nps()
.
as_nps_cat(x, det = 1, pas = 2, pro = 3)
x |
Numeric variable to pass through. Valid range is 0 to 10 inclusive, otherwise returns a NA. |
det |
Numeric value to represent the code for Detractor. Defaults to 1. |
pas |
Numeric value to represent the code for Passive. Defaults to 2. |
pro |
Numeric value to represent the code for Promoter. Defaults to 3. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.