idle_na_locf: Replace Values with Last Observation Carried Forward from...

View source: R/read_acc_csv.R

idle_na_locfR Documentation

Replace Values with Last Observation Carried Forward from Idle Sleep Mode

Description

Replace Values with Last Observation Carried Forward from Idle Sleep Mode

Usage

idle_na_locf(df)

Arguments

df

An object with columns X, Y, and 'Z“

Value

A data set with the zeros filled in

Examples

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)
idle_na_locf(df)

muschellij2/pygt3x documentation built on March 29, 2022, 3:16 a.m.