Learn R Programming

solaR (version 0.46)

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

Description

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

Usage

# S4 method for G0
as.data.frameY(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.zooY function and then into a data.frame with as.data.frame. Besides, it includes an additional column named year.

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