Learn R Programming

timetools (version 1.15.3)

as.data.frame: Convert an object to a data.frame

Description

Convert an object to a data.frame.

Usage

# S3 method for TimeInstantDataFrame
as.data.frame(x, row.names=NULL, optional=FALSE,
  	include.dates=FALSE, ...)
  # S3 method for TimeIntervalDataFrame
as.data.frame(x, row.names=NULL, optional=FALSE,
  	include.dates=FALSE, ...)
  # S3 method for SubtimeDataFrame
as.data.frame(x, row.names=NULL, optional=FALSE,
  	include.dates=FALSE, ...)

Value

a data.frame

Arguments

x

TimeIntervalDataFrame, TimeInstantDataFrame or SubtimeDataFrame

row.names

‘NULL’ or a character vector giving the row names for the data frame. Missing values are not allowed.

optional

logical. If ‘TRUE’, setting row names and converting column names (to syntactic names: see ‘make.names’) is optional.

include.dates

should time properties be included in the data.frame as a column ? (or 2 columns for TimeIntervalDataFrame)

...

additional arguments to be passed to or from methods.