I am trying to convert a vector of text strings into a corpus element. I am using tm package in R to do so.
Following is my piece of code:
s1$Yes is a factor with various levels, each level containing a text string
When I run this code, I an getting following error:
"Error: inherits(x, "Source") is not TRUE"
Any help to solve this error will be greatly appreciated.