obis_strict_match: Ensure that a set of OBIS observations actually fall within a...

Description Usage Arguments Value Examples

View source: R/obis.R

Description

Ensure that a set of OBIS observations actually fall within a set of MPAs

Usage

1
2
3
4
5
obis_strict_match(
  obs = read_obis("Cuba"),
  mpa = read_mpa("Cuba"),
  form = c("tibble", "sf", "index")[1]
)

Arguments

obs

tibble of OBIS observations

mpa

sf MULTIPOLYGON object of MPAs form WDPA

form

character one of

  • tibble return a tibble

  • sf return an sf object (spatially referenced tibble)

  • index a list of indices that provide the match between obs and mpas

Value

tibble of obs with possibly fewer rows

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
  mpa = read_mpa("Belgium")
  obs = read_obis("Belgium")
  obs_strict <- obis_strict_match(obs, mpa)
  dim(obs)
  # [1] 511490    161
  dim(obs_strict)
  # [1] 480302    161

## End(Not run)

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