Learn R Programming

timetools (version 1.1-2)

TimeInstantDataFrame: Create a TimeInstantDataFrame from scratch

Description

To see all methods related to this class, see TimeInstantDataFrame-class

Usage

TimeInstantDataFrame(when, timezone = "UTC", data = NULL,
    ...)

Arguments

when
POSIXct or character representing a time with a valid format (see POSIXct). It gives the instant of each row.
timezone
character representing a valid timezone (see timezone).
data
a data.frame with as much rows as the length of when. Can be NULL (hence the data.frame has zero column and as much rows as needed).
...
arguments to or from other methods

Value

Details

If both when and data are given, data must have a number of rows identical to the length of when.

To access to the class documentation, type in the R console :

class?TimeInstantDataFrame

See Also

TimeIntervalDataFrame, RegularTimeInstantDataFrame, timetools

Examples

Run this code
TimeInstantDataFrame (
	c('2010-01-01', '2010-02-01'),
	'UTC', data.frame(ex=1:2) )

TimeInstantDataFrame (c('2010-01-01', '2010-02-01', '2010-02-02'), 'UTC')

Run the code above in your browser using DataLab