Learn R Programming

solaR (version 0.46)

D_as.data.frameM-methods: Methods for Function as.data.frameM

Description

Convert a G0 object (or a extended class) into a data.frame with monthly values.

Usage

# S4 method for G0
as.data.frameM(object, complete=FALSE)

Arguments

object

A G0 object (or extended.)

complete

A logical.

Methods

signature(object = "G0")

This function converts the object into a zoo container with the as.zooM function and then into a data.frame with as.data.frame. Besides, it includes two additional columns named month and year.

See as.zooM-methods for a description of the argument complete.