# NOT RUN {
df <- data.frame(doc_id = 1:3,
text = c("Testing the system. Second sentence for you.",
"System testing the tidy documents df.",
"Documents will be parsed and lexranked."),
stringsAsFactors=FALSE)
unnest_sentences(df, sents, text)
unnest_sentences_(df, "sents", "text")
# }
# NOT RUN {
library(magrittr)
df %>%
unnest_sentences(sents, text)
# }
Run the code above in your browser using DataLab