Description Usage Arguments Value See Also Examples
Di-syllabic word tallies for the words in a vector of strings by grouping variable(s).
1 | tally_di_vector_by(x, group, ...)
|
x |
A character vector. |
group |
The grouping variable(s). Takes a single grouping variable or a list of 1 or more grouping variables. |
... |
ignored. |
Returns a data.frame
(data.table) of integer tallies for the total number
of di syllable words for each string in the vector.
Other syllable.functions: count_string,
count_vector_by,
count_vector, sum_string,
sum_vector_by, sum_vector,
tally_both_string,
tally_both_vector_by,
tally_both_vector,
tally_di_string,
tally_di_vector,
tally_mono_string,
tally_mono_vector_by,
tally_mono_vector,
tally_poly_string,
tally_poly_vector_by,
tally_poly_vector,
tally_short_string,
tally_short_vector_by,
tally_short_vector
1 2 3 4 5 6 7 8 9 | dat <- data.frame(
text = c("I like chicken.", "I want eggs benedict for breakfast.", "Really?"),
group = c("A", "B", "A")
)
tally_di_vector_by(dat$text, dat$group)
with(presidential_debates_2012, tally_di_vector_by(dialogue, person))
with(presidential_debates_2012, tally_di_vector_by(dialogue, list(role, time)))
with(presidential_debates_2012, tally_di_vector_by(dialogue, list(person, time)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.