Learn R Programming

RSMET (version 1.3.8)

as.data.frame.smet: Coerces a smet-class object to a data frame

Description

Coerces a smet-class object to a data frame

Usage

# S3 method for smet
as.data.frame(x, ..., date.field = "timestamp",
  add.header = FALSE, use.melt = FALSE)

Arguments

x

a smet-class object

...

further arguments

date.field

field neme used for date and time. Default is "timestamp".

add.header

logical If TRUE it adds header scalar attributes as fields of the data frame. Default is FALSE.

use.melt

logical. Default is FALSE. If it is TRUE, the result is melted with melt.

See Also

smet-class, smet,as.data.frame