Description Usage Arguments Details Value Examples
View source: R/covars_make_pos.R
Add additional variables consisting of part-of-speech (POS) frequencies to snippets.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | covars_make_pos(x, ...)
## S3 method for class 'snippet'
covars_make_pos(x, ...)
## S3 method for class 'corpus'
covars_make_pos(x, ...)
## S3 method for class 'data.frame'
covars_make_pos(x, text_field = "text", ...)
## S3 method for class 'character'
covars_make_pos(
x,
text_field = "text",
dependency = TRUE,
normalize = TRUE,
...
)
|
x |
snippet data from |
... |
used to pass the |
text_field |
the name of the text field, if a data.frame, default
is |
dependency |
logical; if |
normalize |
if |
Note that this requires spaCy to be installed (along with Python). See the installation instructions at http://github.com/kbenoit/spacyr.
the data.frame of added variables, consisting of the frequencies of parts of speech in each text
1 2 3 4 | ## Not run:
# some examples here
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.