Multiple Answers in R

How does R handle multiple answers for questions such as:

What are your favourite animals? (Tick all that apply)
Possible Answers:
(A) Dolphin
(B) Lion
(C) Cat
(D) Dog

If I was trying to measure the relationship between life happiness and favourite animals and wanted to get a frequency distribution table for this data set, what would I code?
print(data)

image

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.