View source: R/spatial_functions.R
st_multiply_sgbp | R Documentation |
sf::st_within
) and a vectorPerforms sgbp %% mat, where sgbp is a 0/1 matrix. The main use case is when you want to sum a variable from points into a geometry. For example, sgbp %% rep(1, n) will give you the number within each geometry.
st_multiply_sgbp(sgbp, mat)
sgbp |
|
mat |
Vector/Matrix you want to perform sgbp %*% mat. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.