detect_time_step: Detects time step of a time series

View source: R/preparation.R

detect_time_stepR Documentation

Detects time step of a time series

Description

The function infers, i.e. automatically deduce from the input data, the minimum time step (frequency) that can be used for the input time series.

Usage

detect_time_step(data)

Arguments

data

<data.frame> containing the input time series whose time step has to be detected (time column must be named 'time'), or <array> of POSIXct or date objects.

Value

<string> A string in ISO 8601 format representing the period or timestep (e.g. "PT15M","PT1H", "P3M", "P1D" ,...).


biggproject/biggr documentation built on Oct. 2, 2024, 11:13 p.m.