Apply function to SplicedView and pull out element from output
Apply function to SplicedView and pull out element from output
pull_segment_spliceview(sv, FUN, element,...)
Arguments
sv: SplicedView object.
FUN: function to apply.
element: name of element to pull out from output object.
...: passed to function.
Returns
list with output and input fields.
Examples
r <- get_sample_recording()d1 <- get_duration_annotation_data(r)# only one relevant section for sample datasplicing_smile_df <- splice_time(d1, tier ='INTERACTION', comments ='Mutual look and smile')fv_list <- get_filtered_views(r, data_points ="Nose", n =41, p =3)jv <- get_joined_view(fv_list)sv_duration_smile <- get_spliced_view(jv, splicing_df = splicing_smile_df)pull_segment_spliceview(sv_duration_smile, FUN = analyze_wavelet, column ="Nose_x_Central_Sitar", element ='Power')