MSD_to_YM | R Documentation |
Converts time given as 'months since date' (MSD) into years and months (YM)
MSD_to_YM(dt, timecol = "time", origin = "1981-01-01")
dt |
a data table. |
timecol |
name of the column containing the time. |
origin |
The time column contains time in the format month since which date? |
data table with two new columns 'month' and 'year', the timecol is deleted.
dt = MSD_to_YM(data.table(time = 0:12))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.