allDates: All Dates in a Time Interval

View source: R/TJU_Workday.R

allDatesR Documentation

All Dates in a Time Interval

Description

Find all Dates in a time interval.

Usage

allDates(x)

## S3 method for class 'integer'
allDates(x)

## S3 method for class 'character'
allDates(x)

## S3 method for class 'yearmon'
allDates(x)

## S3 method for class 'yearqtr'
allDates(x)

Arguments

x

R objects, such as

integer

year, e.g., x = 2020L returns all Dates from 2020-01-01 to 2020-12-31

yearmon

year-month object from package zoo

yearqtr

year-quarter object from package zoo

character

convertible to yearmon or yearqtr object

Details

Function allDates returns all Dates in a given time interval.

Value

Function allDates returns a Date vector.


ThomasJeffersonUniv documentation built on July 3, 2024, 5:08 p.m.