Learn R Programming

timetools (version 1.1-2)

SubtimeDataFrame: Create a SubtimeDataFrame from scratch

Description

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

Usage

SubtimeDataFrame(when, data = NULL, ...)

Arguments

when
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?SubtimeDataFrame

See Also

SubtimeDataFrame, subtime, timetools

Examples

Run this code
st <- subtime (1:4, 'wday')
SubtimeDataFrame (st, data.frame (test=sample (0:100, 4)))

Run the code above in your browser using DataLab