Learn R Programming

chronosphere (version 0.4.1)

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, ...)

Value

A data.frame class object.

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.

Details

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

Examples

Run this code
data(dems)
df <- as.data.frame(dems)

Run the code above in your browser using DataLab