st_any | R Documentation |
TRUE
from a binary logical function.Converts a logical matrix into a more manageable logical
vector. Each row of the logical matrix must meet the
min and max TRUE
threshold (1
and Inf
by default, respectively).
st_any(x, at_least = 1L, at_most = Inf)
x |
(sgbp/matrix) Return object of a simple feature binary logical function. |
at_least |
(integer) Minimal occurences of |
at_most |
(integer) Maximum occurences of |
library(sf)
data(ngp)
data(states_map)
i <- ngp %>%
st_intersects(states_map)
i %>%
st_any() %>%
head()
i %>%
st_any(3, 10) %>%
head()
j <- ngp %>%
st_any_intersects(states_map)
head(j)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.