Learn R Programming

npsp (version 0.7-13)

as.sp: Convert npsp object to sp object

Description

Converts a npsp object to a sp object.

Usage

as.sp(obj, ...)

# S3 method for grid.par as.sp(obj, ...)

# S3 method for data.grid as.sp(obj, data.ind = NULL, proj4string = CRS(as.character(NA)), ...)

Value

as.sp.grid.par returns a GridTopology-class object.

as.sp.data.grid returns a SpatialGridDataFrame-class object.

Arguments

obj

a npsp object.

...

further arguments passed to or from other methods.

data.ind

integer or character; vector with indexes or names of the data components.

proj4string

a CRS-class object.

See Also

as.data.frame.data.grid