I have a tidy data frame, with one term and topic per row. It looks like this:
num_topic, term
1, blue
1, green
2, dog
2, cat
I would like to arrange each topic in a separate column, for human readability
topic1, topic2
blue, dog
green, cat
This seems pretty intuitive, but I cannot figure out how to do it. It is not the same as the linked question, because there are no unique identifiers for each term. There are just lists of terms for each topic.