I'm trying to learn R on my own...as you can see from the above image, I would like to combine the relationship column and gender column into one...so that I can create a word cloud based on the newly created column...anyone have the idea on how to code? Please help and thanks a lot
Hey,
You might be looking for the unite command from the tidyr package.
comb %>%
unite(rel_gender, c("relationship", "gender"))
Hope this helps.
Just as a note for future questions - it's easier if you provide a minimal replicable example with the reprex package.
1 Like
I managed to solved the problem. Really thanks for the help....I did learnt about the reprex package as well.
1 Like
This topic was automatically closed 7 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.