detect_date_interval: Function to determine period of a date vector.

View source: R/detect_date_interval.R

detect_date_intervalR Documentation

Function to determine period of a date vector.

Description

Function to determine period of a date vector.

Usage

detect_date_interval(date, skip = 1L, n = 100L, text_return = FALSE)

Arguments

date

A date vector of POSIXt class.

skip

Number of elements in date to skip before detecting interval.

n

Number of elements in date to evaluate to detect the interval.

text_return

Should the date interval be evaluated and a friendly text- based return be attempted?

Value

Integer or character vector with a length of 1.

Author(s)

Stuart K. Grange


skgrange/threadr documentation built on April 15, 2024, 9:35 p.m.