data_grid: Structure the observed data into an equally-spaced data frame

Description Usage Arguments

View source: R/data_grid.R

Description

Structure the observed data into an equally-spaced data frame

Usage

1
2
data_grid(data, variable, interval = 3, na.missing = FALSE,
  smoothing = TRUE)

Arguments

data

Data in a matrix form. Data should contain a variable named 'timestamp' in a 'yyyy-mm-dd hh:mm:ss' format.

variable

Name of variable in the data set you would like to re-structure

interval

The interval of time in second. Default is 3 (i.e. The measurement is evaluated every three second.)

na.missing

If TRUE, missing is considered as NA. If FALSE, the missing is considered as 0. Defulat is FALSE.

smoothing

If TRUE, the curve is smooted first and evaluated at every interval minutes. Defulat is TRUE. If na.missing is TRUE, smoothing is automatically FALSE.


jihuilee/mhealthFDA documentation built on Jan. 1, 2021, 5:30 a.m.