Re: [R] Data Structure to Unnest_tokens in tidytext package

2019-12-11 Thread Eric Berger
Hi Sarah, I looked at the documentation that you linked to. It contains the step text_df <- tibble(line = 1:4, text = text) before it does the step text_df %>% unnest_tokens(word, text) So you may be missing a step. Best, Eric On Tue, Dec 10, 2019 at 9:05 PM Sarah Payne wrote: > > Hi--I'm

[R] Data Structure to Unnest_tokens in tidytext package

2019-12-10 Thread Sarah Payne
Hi--I'm fairly new to R and trying to do a text mining project on a novel using the tidytext package. The novel is saved as a plain text document and I can import it into RStudio just fine. For reference I'm trying to do something similar to section 1.3 of this tidy text tutorial