How many choices do we have?
I've loaded a data frame called chocolate_wide
that contains choice data collected in a survey. In each question, a respondent chose between three chocolate bars with different brand
, price
and type
. The data is in wide format, so each row represents one choice. How many choices are in the chocolate_wide
data frame?
This exercise is part of the course
Choice Modeling for Marketing in R
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
