Arith-timeDay | R Documentation |
timeDay
objectsAddition of time-of-day data to either "Date" or "POSIXt" classes. This is useful when dates and times are recorded in separate columns in a dataset.
## S4 method for signature 'timeDay,POSIXt' Arith(e1, e2) ## S4 method for signature 'POSIXt,timeDay' Arith(e1, e2) ## S4 method for signature 'timeDay,Date' Arith(e1, e2) ## S4 method for signature 'Date,timeDay' Arith(e1, e2)
e1, e2 |
timeDay and POSIXt or Date objects. Missing values are permitted in either argument and result in a missing value in the output. |
A vector of class "POSIXct."
as.Date("2001-03-04") + as.timeDay("10:00") ## Not run: library(smwrData) data(QW05078470) # Note that the result is reported in the local time zone! QW05078470$DATES + as.timeDay(QW05078470$TIMES) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.