Description Usage Arguments Value Examples
The C++ doc2vec functionalities in this package assume words are either separated
by a space or tab symbol and that each document contains less than 1000 words.
This function calculates how many words there are in each element of a character vector by counting
the number of occurrences of the space or tab symbol.
1 | txt_count_words(x, pattern = "[ \t]", ...)
|
x |
a character vector with text |
pattern |
a text pattern to count which might be contained in |
... |
other arguments, passed on to |
an integer vector of the same length as x
indicating how many times the pattern is occurring in x
1 2 3 | x <- c("Count me in.007", "this is a set of words",
"more\texamples tabs-and-spaces.only", NA)
txt_count_words(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.