Description Usage Arguments Details Value Author(s) Examples
"IsReg" is a wrapping Function for Function "is.regular" from "zoo" package. Given a "data.frame" object it is converted into a "xts" object, while the regularity of the object is checked. The first column of the "data.frame" should contain a character string vector to be converted via as.POSIXct accordingly with the date format (format) and time zone (tz).
1 |
data |
an object of class |
format |
character string giving a date-time format as used by |
tz |
a time zone specification to be used for the conversion, if one is required. System-specific, but "" is the current time zone, and "GMT" is UTC (Universal Time, Coordinated). Invalid values are most commonly treated as UTC, on some platforms with a warning. |
"IsReg" calls the as.POSIXct function from base
package to convert an object to one of the two
classes used to represent date/times (calendar dates plus time to the nearest second).
More details can be found in the "is.regular" function of the "zoo" package.
Object of class "list"
. This object contains 2 elements,
the first one contains a character string "_TSregular" if the xts object created is strict regular,
or "_TSirregular" if it is strict irregular. More details can be found in the "is.regular" function of the
"zoo" package.
J.A. Torres-Matallana
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.