Learn R Programming

sorvi (version 0.4.05)

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

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

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

Value

  • a list of Shape objects (from SpatialPolygonsDataFrame class)

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.

References

See citation("sorvi")

See Also

spChFIDs, spRbind