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

as.data.frameR Documentation

Convert an object to a data.frame

Description

Convert an object to a data.frame.

Usage

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

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.

Value

a data.frame


timetools documentation built on Aug. 29, 2023, 5:09 p.m.