Description Usage Arguments Value Examples
Convert vector of sentences to a data.frame of separate words The output is a data.frame with 3 variables: word, word_n (number of word), sent_n (number of sentence)
1 | str_sent2words(x, cleanup = TRUE, sep = " ")
|
x |
the vector of sentences |
cleanup |
logical indicates whether to remove punctuation and some other cleanup |
sep |
separator of words, space by default |
data.frame with 3 variables: word, word_n (number of word), sent_n (number of sentence)
1 | str_sent2words(c("привет","Маша, это я, Дубровский"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.