get_doys: Get start days, given interval

View source: R/date_funcs.R

get_doysR Documentation

Get start days, given interval

Description

Get a list of days of the year for a given year and selected months. This can return every day, or the start of every week, second week, or month. It also can use either the 8-day/week 46 week/year system as used by NASA, or the 4 week/month 48 week/year system as used at BIO (only relevant for weekly or biweekly intervals).

Usage

get_doys(year, months = 1:12, eightday = TRUE, interval = "daily")

Arguments

year

Numeric value

months

Numeric vector of month numbers

eightday

Logical value (use eightday system?)

interval

String, either "daily", "weekly", "biweekly", or "monthly"

Value

Character vector containing days of the year, each zero-padded to length 3.


BIO-RSG/oceancolouR documentation built on April 30, 2024, 7:54 a.m.