MergeSpatial: Merge a list of Spatial*DataFrame objects into one...

Description Usage Arguments Details Value Note Author(s) References See Also

View source: R/HKK.R

Description

Several independent Spatatial*DataFrame objects held in a list can be merged into one object as long as all are of the same class. CRS projections will be performed if target CRS is provided. If CRS is not provided, the CRS of the first object will be used. If even one object is missing a CRS, no projections are performed and there is no guarantee that merge will produce desired outcome.

Usage

1
  MergeSpatial(sp.list, CRS = NA, FID = NA)

Arguments

sp.list

A list of Spatial*DataFrame objects to be merged

CRS

A proj4string definign target CRS for the target Spatial*DataFrame object

FID

A string that names the column used as FID

Details

All schemas must match, a schema is checked on the basis of column names. An optional FID string can be give to name for a field (column) in table schema that will be used as FIDs. It's up to the user to check that FID values are unique.

Value

a list of Shape objects (from SpatialPolygonsDataFrame class)

Note

Not tested (at all)

Author(s)

Joona Lehtomaki sorvi-commits@lists.r-forge.r-project.org

References

See citation("sorvi")

See Also

spChFIDs, spRbind


sorvi documentation built on May 2, 2019, 6:16 p.m.