monthly_date: Create a monthly date vector

Description Usage Arguments Details Value Examples

View source: R/monthly_date.R

Description

This function produces a vector of dates that increment by month.

Usage

1
monthly_date(st_month, st_year, ed_month, ed_year, date_number = 1)

Arguments

st_month

A number indicating the month of the starting date.

st_year

A number indicating the year of the starting date.

ed_month

A number indicating the month of the ending date.

ed_year

A number indicating the year of the ending date.

day_numer

A number indicating the dummy date number that should be set for each date.

Details

The output of this function is most useful for passing as an argument to bfastSpatial(), which requires a date vector.

Value

A vector of class Date spanning the start and end dates by month.

Examples

1
2
3
4
## Not run: 
monthly_date(2, 2000, 5, 2018)

## End(Not run)

jnghiem/bfasttools documentation built on Nov. 4, 2019, 3:02 p.m.