impute_epochs: Impute missing count values

Description Usage Arguments Value See Also Examples

View source: R/impute_epochs.R

Description

Trim leading and trailing NAs. Fill in the rest of the NAs using cubic spline interpolation.

Usage

1

Arguments

agdb

A tibble (tbl) of activity data (at least) an epochlength attribute.

...

Comma separated list of unquoted variables.

Value

A tibble (tbl) of activity data. Each variable in ... is imputed.

See Also

na.spline, na.trim

Examples

1
2
3
4
5
6
library("dplyr")
data("gtxplus1day")

gtxplus1day$axis1[5:10] <- NA
gtxplus1day %>%
  impute_epochs(axis1)

oslerinhealth/actigraph.sleepr documentation built on May 25, 2021, 1:06 p.m.