cshp {cshapes}R Documentation

Access the CShapes dataset in R

Description

The cshapes package makes the full dataset available for usage in R. This function returns a SpatialPolygonsDataFrame with the complete cshapes dataset.

Usage

  cshp()

Value

A SpatialPolygonsDataFrame, containing the complete CShapes dataset.

Author(s)

Nils B. Weidmann

See Also

SpatialPolygonsDataFrame

Examples

# Retrieve the dataset
cshp <- cshp()

# Get summary statistics
summary(cshp)

# Extract Switzerland 
switzerland <- cshp[cshp$COWCODE==225,]

# Plot Switzerland
plot(switzerland)

[Package cshapes version 0.1-1 Index]