Learn R Programming

ThomasJeffersonUniv (version 0.1.3)

allDates: All Dates in a Time Interval

Description

Find all Dates in a time interval.

Usage

allDates(x)

# S3 method for integer allDates(x)

# S3 method for character allDates(x)

# S3 method for yearmon allDates(x)

# S3 method for yearqtr allDates(x)

Value

Function allDates returns a Date

vector.

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.