View source: R/make_tidy_text_stm_ready.R
make_tidy_text_stm_ready | R Documentation |
get a pre-processed stm::prepDocuments() object ready for use in stm::stm(). This function allows for the expedition of preparing a tidy text object for use in stm::stm()
make_tidy_text_stm_ready(tidy_train_text_obj)
tidy_train_text_obj |
the "tidy text" object that is to be processed. see https://juliasilge.com/blog/evaluating-stm/ |
a list object containing "documents", "vocab", "meta", etc,. typically returned by stm::prepDocuments()
## Not run:
data("tm_ex_dat")
tidy_train_text <- tm_ex_dat$tidy_train_text
nested_dat <- tm_ex_dat$nested_tidy_train_text
make_tidy_text_stm_ready(tidy_train_text)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.