doy_window: Compute the doy window given the day of year and window size

View source: R/datetime.R

doy_windowR Documentation

Compute the doy window given the day of year and window size

Description

Given doy 100 with a window of c(-5,5) will yield -95,-96,...104,105

Usage

doy_window(x = 1, w = c(-5, 5), MAX = 366)

Arguments

x

the day of year (should be 1-366 or 001-366)

w

the window as 2 elements [days before, days after]

MAX

the highest possible day number

Value

numeric doy vector


BigelowLab/dismotools documentation built on Jan. 4, 2023, 11:24 a.m.