Description Usage Arguments Value Examples
Select part of speech tags and accompanying words.
1 | select_tags(x, tags, negate = FALSE, regex = FALSE, ...)
|
x |
A |
tags |
The tags (or regex of |
negate |
logical. If |
regex |
logical. If |
... |
Other arguments passed to |
Returns a list of selected part of speech tagged vectors.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | data(presidential_debates_2012_pos)
library(dplyr)
presidential_debates_2012_pos %>%
select_tags(c("NN", "NNP", "NNPS", "NNS"))
presidential_debates_2012_pos %>%
select_tags(c("NN", "NNP", "NNPS", "NNS")) %>%
count_tags(presidential_debates_2012[, c("person", "time")])
presidential_debates_2012_pos %>%
select_tags("NN", regex=TRUE) %>%
count_tags(presidential_debates_2012[, c("person", "time")])
presidential_debates_2012_pos %>%
select_tags("NN(\\b|[^S])", regex=TRUE) %>%
count_tags(presidential_debates_2012[, c("person", "time")])
presidential_debates_2012_pos %>%
select_tags(c("NN", "NNP", "NNPS", "NNS"), TRUE) %>%
count_tags(presidential_debates_2012[, c("person", "time")])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.