fix_zeros: Fix Zeros from Idle Sleep Mode

Description Usage Arguments Value Examples

View source: R/fix_zeros.R

Description

Fix Zeros from Idle Sleep Mode

Usage

1
2
3

Arguments

df

An object with columns 'X', 'Y', and 'Z' or an object of class 'AccData'

fill_in

Should the zeros be filled in with the last observation carried forward?

Value

A data set with the zeros filled in

Examples

1
2
3
4
5
6
7
df = data.frame(
  X = c(0.3/sqrt(0.5), rep(0, 3)),
  Y = c(0.4/sqrt(0.5), rep(0, 3)),
  Z = c(0.5/sqrt(0.5), rep(0, 3)),
  stringsAsFactors = FALSE)
fix_zeros(df)
fix_zeros(df, fill_in = FALSE)

oslerinhealth/SummarizedActigraphy documentation built on Aug. 20, 2020, 2:21 a.m.