I got a document feature matrix from the quanteda package. The features are bigrams in this form word1_word2.
I would like to separate these bigrams into word1 in one column and word2 in another column, looking like this.
The left of the underscore becomes word1, while the right of the underscore becomes word2. How do I do this in R?