Splitting text dummy into Dummies

I have the following data:
HouseType = c("A", "B", "C")
HouseFeatures= c("['Kitchen', 'Bathroom']" , "['Kitchen']", "['Bedroom', 'Bathroom', 'Kitchen']"
HouseRent = c(10,20,30)

I want to create different tables for these house features with a binary indicator for whether the house has the feature. What's the best way of doing that?

Hello @metrics,

don't go immediately for the best way.
Show us what you tried and maybe we can improve your solution.

This topic was automatically closed 21 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.