get_epoch_length: Guess the epoch length (in seconds) from the timestamp column

View source: R/utils.R

get_epoch_lengthR Documentation

Guess the epoch length (in seconds) from the timestamp column

Description

Guess the epoch length (in seconds) from the timestamp column

Usage

get_epoch_length(epochs)

Arguments

epochs

A data frame with at least one column, timestamp, which contains POSIXct objects.

Examples

data("gtxplus1day")

gtxplus1day %>%
  get_epoch_length()

gtxplus1day %>%
  collapse_epochs(60) %>%
  get_epoch_length()

dipetkov/actigraph.sleepr documentation built on March 25, 2022, 2:33 a.m.