Learn R Programming

chronosphere (version 0.3.1)

as.data.frame.RasterArray: S3-type method for RasterArray allowing View(), head() and tail() to work. Convert RasterArray class objects to data.frames

Description

Formal conversion method transforming the proxy object to a data.frame.

Usage

# S3 method for RasterArray
as.data.frame(x, row.names = NULL, optional = FALSE, ...)

Arguments

x

a RasterArray class object.

row.names

Argument to define the rownames of the resulting data.frame.

optional

logical Flag to reset the rownames and colnaems attributes.

...

additional arguments passed to and from methods.

Value

A data.frame class object.

Examples

Run this code
# NOT RUN {
data(dems)
df <- as.data.frame(dems)

# }

Run the code above in your browser using DataLab