expand_timestamp: Expand a time period into a vector of equally spaced time...

Description Usage Arguments Examples

View source: R/utils.R

Description

Given the start time and the end time of a period, expand it into a vector of equally spaced time points.

Usage

1

Arguments

start

The start time, as a POSIXct object.

end

The end time, as a POSIXct object.

units

The time unit as a characters string. The default is "1 min".

Examples

1
2
3
start <- as.POSIXct("2017-01-01")
end <- as.POSIXct("2017-01-01 01:00:00")
expand_timestamp(start, end, "15 mins")

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