Skip to contents

Merge two video timing dataframes

Usage

ov_merge_video_timing_df(x, default = ov_video_timing_df())

Arguments

x

data.frame: video timings to use

default

data.frame: default timings to use, for anything not provided in x

Value

A data.frame

Examples


my_timings <- data.frame(skill = "Attack", phase = "Reception", start_offset = 0)
ov_merge_video_timing_df(my_timings)
#> # A tibble: 11 × 4
#>    skill     phase      start_offset duration
#>    <chr>     <chr>             <dbl>    <dbl>
#>  1 Serve     Serve                -5        8
#>  2 Reception Reception            -2        8
#>  3 Set       Reception            -5        8
#>  4 Set       Transition           -5        8
#>  5 Attack    Reception             0        8
#>  6 Attack    Transition           -5        8
#>  7 Block     Reception            -5        8
#>  8 Block     Transition           -5        8
#>  9 Dig       Transition           -5        8
#> 10 Freeball  Reception            -5        8
#> 11 Freeball  Transition           -5        8