Learn R Programming

MazamaSpatialUtils (version 0.7.6)

convertNaturalEarthAdm1: Convert Level 1 (State) Borders Shapefile

Description

Returns a SpatialPolygonsDataFrame for 1st level administrative divisions

Usage

convertNaturalEarthAdm1(nameOnly = FALSE, simplify = TRUE)

Value

Name of the dataset being created.

Arguments

nameOnly

Logical specifying whether to only return the name without creating the file.

simplify

Logical specifying whether to create "_05", _02" and "_01" versions of the file that are simplified to 5%, 2% and 1%.

Details

A state border shapefile is downloaded and converted to a SpatialPolygonsDataFrame with additional columns of data. The resulting file will be created in the spatial data directory which is set with setSpatialDataDir().

Within the MazamaSpatialUtils package the phrase 'state' refers to administrative divisions beneath the level of the country or nation. This makes sense in the United 'States'. In other countries this level is known as 'province', 'territory' or some other term.

References

http://www.naturalearthdata.com/downloads/

http://www.statoids.com/ihasc.html

See Also

setSpatialDataDir

getVariable