Description Usage Arguments Details Value See Also Examples
Report descriptive statistics for a set of texts.
1 | text_stats(x, filter = NULL, ...)
|
x |
a text corpus. |
filter |
if non- |
... |
additional properties to set on the text filter. |
text_stats
reports descriptive statistics for a set of texts:
the number of tokens, unique types, and sentences.
A data frame with columns named tokens
, types
, and
sentences
, with one row for each text.
1 2 | text_stats(c("A rose is a rose is a rose.",
"A Rose is red. A violet is blue!"))
|
tokens types sentences
1 9 4 1
2 10 8 2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.