impute_primary: Impute primary accelerometer data for missing packets

Description Usage Arguments

View source: R/impute_primary.R

Description

Impute primary accelerometer data for missing packets

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
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

info

the result of parse_info_txt

tz

character. The timezone to use


AGread documentation built on Feb. 26, 2020, 5:12 p.m.