Learn R Programming

chronosphere (version 0.4.0)

as.data.frame.RasterArray: S3-type method for RasterArray and SpatialArray

Description

Convert RasterArray class objects to data.frames allowing View(), head() and tail() to work.

Usage

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

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

Arguments

x

a RasterArray and SpatialArray 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.

Details

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

Examples

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

# }

Run the code above in your browser using DataLab