add_date_info: add explicit date info

View source: R/date.R

add_date_infoR Documentation

add explicit date info

Description

add explicit date info

Usage

add_date_info(dt, DateName = "Date", extra_indices = NULL, n = 8)

Arguments

dt

data.table

DateName

date ranges: c(date_start, date_end)

extra_indices

extra options, c('yday', 'dn'). yday is the DOY (days of year)

n

day order of dn, 7th is weekly and 8th is used for MODIS

Value

Year, Month, Day and extra indices


xuzhenwu/xu documentation built on Oct. 15, 2023, 10:32 a.m.