dtt_add_units | R Documentation |
Add time units to a date time vector.
dtt_add_units(x, units, n = 1L)
dtt_add_years(x, n = 1L, ...)
dtt_add_months(x, n = 1L, ...)
dtt_add_days(x, n = 1L, ...)
dtt_add_hours(x, n = 1L, ...)
dtt_add_minutes(x, n = 1L, ...)
dtt_add_seconds(x, n = 1L, ...)
x |
A date/time vector. |
units |
A string of the time units. The possible values are "secs", "minutes", "hours", "days" or "weeks". |
n |
An integer of the number of units. |
... |
Unused. |
The modified date time vector.
dtt_subtract_units()
Other add:
dtt_date_add_time()
dtt_add_units(as.Date("1999-12-31"), "days")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.