read_mpa: Read a previously downloaded MPA dataset for a country,...

Description Usage Arguments Value Examples

View source: R/mpa.R

Description

Read a previously downloaded MPA dataset for a country, region, etc

Usage

1
read_mpa(name = "Cuba", path = rappdirs::user_data_dir("wdpar"), ext = ".gpkg")

Arguments

name

character, the name of the country or 'global' that you have previously downloaded

path

character, the output path. We default to user_data_dir

ext

character, the file extension, by default we use ".gpkg"

Value

a simple features table

Examples

1
2
3
4
5
6
## Not run: 
  require(sf)
  x <- mpa_read("Cuba")
  plot(x['REP_AREA'])

## End(Not run)

BigelowLab/mpatools documentation built on Jan. 20, 2022, 3:46 p.m.