I'm really new to R, I'm sorry!
I'm trying to tokenize a txt by word and getting errors with all commands I try, but this one's the most infuriating and nonsensical one. I'm trying a simple-looking
> tokenwords <- tokenize(reference, what = c("word"))
which looks like a basic R command and I got here. I understand that if I excluded "what" bit it should default to tokenizing by word, but that's not the case: it tokenizes by line, as the data was set up beforehand.
Why am I getting the below error, then? What does it MEAN "unused argument?"
Error in tokenize(reference, what = c("word")) :
unused argument (what = c("word"))
I've also tried unnest_tokens and the tokenizer package and they give me different, unexplained errors as well, I just thought I'd pick the simplest-looking error.