Hi,
I'm trying to read a dataframe in the R tool but I keep on getting the below error message. I've also included the code that I'm trying to run.
This code runs perfectly in R Studio, I'm unable to understand what's the issue in Alteryx.
Solved! Go to Solution.
This error is related to writing your data back into Alteryx. Alteryx requires the data to be in a data frame in order for the writeback to work. If it's not a data frame, Alteryx will use the function as.data.frame to try to coerce the data into a data frame. This is where you are getting the error, as R cannot natively convert a corpus to a data frame.
I would recommend continuing on with your text mining analysis, and then output final results, such as topics or document-term-matrices, into Alteryx.
This Stackoverflow link provides a few suggestions to coerce your corpus into a data frame: