alignDates: Re-align 2017-2019 dates so their weekdays match to 2020

View source: R/alignDates.R

alignDatesR Documentation

Re-align 2017-2019 dates so their weekdays match to 2020

Description

alignDates returns a dt with 'fixedDate' set to the date needed in 2017-2019 to match the nearest weekday in 2020. Use this for plots which try to compare daily values over time.

Usage

alignDates(dt, dateTime, toDate)

Arguments

dt

the data.table to align

dateTime

the dateTime variable to use

toDate

return data up to but not including this date

Details

The data.table to align *must* have a dateTime variable (bu tyou can tell it which one).

Author(s)

Ben Anderson, b.anderson@soton.ac.uk

See Also

Other data: cleanNZEmbEA(), cleanNZGridEA(), cleanNZGxpEA(), cleanUkEmbeddedESO(), cleanUkGridESO(), getNZEmbData(), getNZEmbMeta(), getNZGridEA(), getNZGridMeta(), getNZGxpEA(), getNZGxpMeta(), getUkEmbeddedESO(), getUkGridESO(), loadNZEAYearlyEmbeddedGenData(), loadNZEAYearlyGridGenData(), loadUKESOYearlyGenData(), loadUKEmbeddedGenData(), makeNZYearlyData(), nzCalculateCO2e(), reshapeEmbeddedGenDT(), reshapeGenDT(), saveUkEmbeddedESO(), saveUkGridESO(), setEmbeddedGenTimePeriod(), setGridGenTimePeriod()

Other utils: addLockdownRect(), addSeason(), getDuration(), gzipFile(), loadLibraries(), nzCalculateCO2e(), setPeakPeriod(), setup(), tidyNum()


CfSOtago/gridCarbon documentation built on April 5, 2022, 6:46 a.m.