I have a multiple choice question from my survey that has several character variables per line. I was trying to figure out how I can separate these using tidyverse, so I can use ggplot2 to put the total answers for each variable in a bar graph.
Example:
What are your preferred methods for receiving information about precision technologies and conservation programs and incentives? (Select up to 3)
df <- data.frame (Name = c("Sue", "Joe", "Bob"),
Q3 = c("Mail,Live Demonstrations,Websites", "Mail,Websites,In-person meetings/seminars", "Email,Mail,Videos (Ex: Youtube)"))
I tried pivot_longer(Survey$Q3) (with Q3 being the answers) but I got back this error
"Error in UseMethod("pivot_longer") :
no applicable method for 'pivot_longer' applied to an object of class "character""