Skip to contents

Output from new analysis process that generates data at the same sample rate as the video data. The user is responsible for ensuring that this data is continuous before using this function.

Usage

get_feature_data(
  recording,
  vid,
  direct,
  inst,
  interpolate_data = FALSE,
  folder_out = tempdir(),
  save_output = FALSE,
  filetype = "rda",
  verbose = FALSE
)

Arguments

recording

Recording object.

vid

camera.

direct

direction.

inst

instrument.

interpolate_data

should the data be interpolated? (default is FALSE).

folder_out

output folder relative to recording home (default is 'tempdir()').

save_output

save the output?

filetype

type of file ('rda' as default), can be 'csv'.

verbose

messages the specific data loaded (default is 'FALSE').

Value

a FilteredView object.

Examples

r <- get_sample_recording()
fd <- get_feature_data(r, "Central" ,"", "Sitar")
fv_list <- get_filtered_views(r, 'LEar', n = 41, p =3)
fv_list$Feature <- fd
jv <- get_joined_view(fv_list)
get_data_points(jv)
#> [1] "LEar"   "Pitch"  "Smooth"
autoplot(jv)
#> Warning: Sampling rows for plotting
#> Warning: Removed 11 rows containing missing values (`geom_line()`).