approx_glucose: Approximate Glucose Data

Description Usage Arguments Value

View source: R/approx_glucose.R

Description

Creates a data.frame of all the times interpolated to the interval. Uses approxfun to approximate

Usage

1
2
approx_glucose(glucose, interval = 1, interval_unit = "mins",
  round_second = TRUE, ...)

Arguments

glucose

A data.frame with a time column and glucose column

interval

The interval to space out the times

interval_unit

the unit for the intervals

round_second

Round the seconds in the times

...

additional arguments passed to approxfun

Value

A data.frame of all the times in the range of the original data


muschellij2/gluc documentation built on March 2, 2020, 8 p.m.