Description Usage Arguments Value
Given a set of MPAs and observations determine which observations belong to which MPA
1 | mpa_match(mpa = read_mpa("Cuba"), obs = random_points(mpa), ...)
|
mpa |
sf object of MPA polygons |
obs |
sf object of observation points |
... |
other arguments for |
a list of match vectors by index. If obs has 1000 points then a 1000 length list of integer vectors is returned where each vector has zero or more integers indicating which mpa polygon each belongs to. For example, the first 3 points below do not intersect any polygons, while the 4th intersects with 3 polygons and the the 5th intersects with just one.
1 int(0)
2 int(0)
3 int(0)
4 int [1:3] 42 71 177
5 int 40
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.