I've been using
as.formula for setting up a glm, and I can't figure out where the unexpected symbol is. Part of the problem is that the character vector I'm converting is so long. It's about 700 words with
+ inserted in between in order to turn it into a formula. The error presents as follows:
Error in parse(text = x, keep.source = FALSE) : <text>:2:10080: unexpected symbol
with the following snippet of the text:
2: c_1_E + Campaign_Search_Payroll_Generic_1_P + Campaign_Search_Performing_Core_Keywords + Campaign_Self_Employment_E + Campaign_Self_Employment_P + Campaign_Withholding + Campaign_Youtube + Sou
Things I know for sure:
- No item is repeated.
- No symbols other than alphanumerics and underscore (
- No item starts with a number.
I'm not well versed enough in R to understand reading the documentation for
as.formula or the function call itself.