cshp {cshapes} | R Documentation |
The cshapes package makes the full dataset available for usage in R. This function returns a SpatialPolygonsDataFrame
with the complete cshapes dataset.
cshp()
A SpatialPolygonsDataFrame
, containing the complete CShapes dataset.
Nils B. Weidmann
# Retrieve the dataset cshp <- cshp() # Get summary statistics summary(cshp) # Extract Switzerland switzerland <- cshp[cshp$COWCODE==225,] # Plot Switzerland plot(switzerland)