Description Usage Arguments Value Examples
Clip a data frame by a shapefile
1 | cutByShp(myshp, dat, lat.name, long.name)
|
myshp |
the shapefile (class SpatialPolygonsDataFrame) that must be based on WGS84 coordinate system |
dat |
the data frame to be cut that must include WGS84 lat/long coordinates |
lat.name |
the name of the column about latitude in |
long.name |
the name of the column about longitude in |
A subset of the data frame clipped by the shapefile
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.