get_feature_data {movementsync}R Documentation

Get Feature Data

Description

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.

See Also

Other data functions: apply_filter_sgolay(), get_data_points(), get_duration_annotation_data(), get_filtered_views(), get_joined_view(), get_metre_data(), get_onsets_selected_data(), get_processed_views(), get_processed_view(), get_raw_optflow_view(), get_raw_views(), get_raw_view(), get_recording(), get_sample_recording()

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)
autoplot(jv)

[Package movementsync version 0.1.4 Index]