as.timeDate | R Documentation |
Coerce and transform objects of class "timeDate"
.
## methods for base R functions ## S3 method for class 'timeDate' as.character(x, ...) ## S3 method for class 'timeDate' as.double(x, units = c("auto", "secs", "mins", "hours", "days", "weeks"), ...) ## S3 method for class 'timeDate' as.data.frame(x, ...) ## S3 method for class 'timeDate' as.POSIXct(x, tz = "", ...) ## S3 method for class 'timeDate' as.POSIXlt(x, tz = "", ...) ## S3 method for class 'timeDate' as.Date(x, method = c("trunc", "round", "next"), ...) ## methods for as.timeDate ## Default S3 method: as.timeDate(x, zone = "", FinCenter = "") ## S3 method for class 'POSIXt' as.timeDate(x, zone = "", FinCenter = "") ## S3 method for class 'Date' as.timeDate(x, zone = "", FinCenter = "") ## S3 method for class 'timeDate' as.timeDate(x, zone = x@FinCenter, FinCenter = "")
FinCenter |
a character with the location of the financial center named as "continent/city". |
method |
a character string denoting the method how to determine the dates. |
tz |
inputs the time zone to POSIX objects, i.e. the time zone,
|
units |
a character string denoting the date/time units in which the results are desired. |
x |
an object of class |
zone |
the time zone or financial center where the data were recorded. |
... |
arguments passed to other methods. |
for as.timeDate.POSIXt
, an object of class "timeDate"
,
for as.timeDate.Date
, an object of class "timeDate"
## timeDate - tC = timeCalendar() ## Convert 'timeDate' to a character strings: as.character(tC) ## Coerce a 'Date' object into a 'timeDate' object: as.timeDate(Sys.Date())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.