I am getting an error. Can you explain why? Thanks.
> doc_term_mat = presidential_debates_2012 %>%
+ with(gofastr::q_dtm_stem(dialogue, paste(person, time, sep = "_"))) %>% + gofastr::remove_stopwords(stops, stem=TRUE) %>% + gofastr::filter_tf_idf() %>%
+ gofastr::filter_documents()
Error in eval(substitute(expr), data, enclos = parent.frame()) : invalid 'envir' argument of type 'character'
I am getting an error. Can you explain why? Thanks.