Description Usage Arguments Value Examples
duration
- Calculate duration (start and end times) for duration of
turns of talk measured in words.
startss
- Calculate start times from a numeric vector.
ends
- Calculate end times from a numeric vector.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
x |
A |
grouping.var |
The grouping variables. Default |
text.var |
The name of the text variable. If |
... |
Ignored. |
Returns a vector or data frame of starts and/or ends.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | (x <- c(
"Mr. Brown comes! He says hello. i give him coffee.",
"I'll go at 5 p. m. eastern time. Or somewhere in between!",
"go there"
))
duration(x)
group <- c("A", "B", "A")
duration(x, group)
groups <- list(group1 = c("A", "B", "A"), group2 = c("red", "red", "green"))
duration(x, groups)
data(DATA)
duration(DATA)
## Larger data set
duration(hamlet)
## Integer values
x <- sample(1:10, 10)
duration(x)
starts(x)
ends(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.