impute_primary: Impute primary accelerometer data for missing packets

View source: R/impute_primary.R

latch_accelR Documentation

Impute primary accelerometer data for missing packets

Description

Impute primary accelerometer data for missing packets

Usage

latch_accel(vector_size, accel_input, samp_rate)

get_latch_index(missing_times, reference_times)

get_latch_values(indices, RAW)

get_latch_entries(
  samp_rate,
  timestamps,
  accel_x,
  accel_y,
  accel_z,
  return_empty = FALSE
)

latch_replicate(start_time, stop_time, x_val, y_val, z_val)

impute_C(gaps, object)

impute_primary(object, verbose)

idle_sleep_impute(object, events, info, tz, verbose)

Arguments

vector_size

int. The size of the final vector

accel_input

NumericVector. The accelerometer values to reference for latching

samp_rate

int. The sampling rate

missing_times

vector of missing timestamps for which to identify a latch index

reference_times

vector of reference timestamps for use in determining the latch index

indices

IntegerVector containing latch indices

RAW

DataFrame containing raw acceleration data

timestamps

vector of timestamps on which to perform latching

accel_x

vector of x-axis accelerations on which to perform latching

accel_y

vector of y-axis accelerations on which to perform latching

accel_z

vector of z-axis accelerations on which to perform latching

return_empty

bool. Return an empty data frame?

gaps

DataFrame with gap information

object

data frame of primary accelerometer data

verbose

logical. Print updates to console?

events

the result of parsing EVENTS packets (internal use)

info

the result of parse_info_txt

tz

character. The timezone to use


AGread documentation built on Sept. 13, 2022, 5:06 p.m.