get_confessional_timing {survivoR} | R Documentation |
Confessional time
Description
Takes the output of the times recorded from the Shiny app and aggregates to the final
confessional times and confessional counts. confessional_time
is the total duration
in seconds for the episode. confessional_count
is the number of confessionals
recorded to be at least 10 seconds apart.
Usage
get_confessional_timing(x, .vs, .episode, .mda = 3)
Arguments
x |
Either a data frame or path(s) to the csv file containing all the time stamps from the Shiny app |
.vs |
Version season |
.episode |
Episode |
.mda |
Missing duration adjustment (MDA) in seconds. If either start or stop is missing from the records, the missing value is imputed with a 3 second adjustment by default. |
Value
data frame
Examples
# After running app and recording confessionals, run...
# Example from a saved timing file
library(readr)
path <- system.file(package = "survivoR", "extdata/US4412.csv")
df_us4412 <- read_csv(path)
get_confessional_timing(df_us4412, .vs = "US44", .episode = 12)
[Package survivoR version 2.3.4 Index]