Big Data Time Date Objects

DESCRIPTION:

Construct a bdTimeDate object from a character vector, a vector of julian days, or a vector of milliseconds, or construct an empty bdTimeDate object.

This function requires the bigdata library section to be loaded.

USAGE:

 
bdTimeDate(charvec, julian=0, ms=0, in.origin=c(month=1, day=1, year=1960)) 
as.bdTimeDate(x)
is.bdTimeDate(x)

REQUIRED ARGUMENTS:

One of charvec, julian , or ms must be supplied, unless the function is called with no arguments.
x
For as.bdTimeDate, a timeDate vector, or another vector or a bdVector, or single-column bdFrame that can be interpreted as time-date informaton.

Any S-PLUS object for is.bdTimeDate.

OPTIONAL ARGUMENTS:

charvec
character vector to read the values from.
julian
integer vector of number of days since in.origin. If ms is missing, this argument can also be a numeric whose fractional part gives the fraction of the day.
ms
integer vector of milliseconds since midnight.
in.origin
origin for the julian argument. This should be a vector with month, day, and year components.

VALUE:

a bdTimeDate object derived from the inputs.

DETAILS:

If charvec is given, values are read from its character strings using the format string from options("time.in.format") . If charvec is not supplied, then julian and/or ms are used to construct the bdTimeDate vector.

SEE ALSO:

, , , .

EXAMPLES:

bdTimeDate() 
bdTimeDate(c("1/1/97", "2/1/97", "mar 1, 1997")) 
bdTimeDate(julian = 36, ms = 876393,  
      in.origin = c(month=1,day=1,year=1998))