general_functions | R Documentation |
These functions manipulate segmetric objects.
sm_area()
: Return a vector of areas, one for each polygon.
sm_centroid()
: Return the centroids of the given polygons.
sm_intersection()
: Return the intersection of the given simple features.
sm_subset_union()
: Return the union of the given simple features.
sm_rbind()
: Return the merge of unique simple features.
sm_summarize_groups()
: Summarizes metric values by a group
(either reference or segment).
sm_options()
: Get/Set segmetric options.
sm_area(s, order = NULL) sm_centroid(s, order = NULL) sm_distance(s1, s2) sm_intersection(s1, s2, touches = TRUE) sm_subset_union(s) sm_rbind(...) sm_apply_group(x, groups, fn, ...) sm_summarize_group(x, groups, fn, ...) sm_norm_left(x, y) sm_norm_right(x, y) sm_options(..., digits = NULL)
s, s1, s2 |
Either a |
order |
A |
touches |
A |
... |
For |
x, y |
A |
groups |
A group identifier vector used to aggregate a metric for each group. |
fn |
A |
digits |
An |
sm_area()
: Return a numeric
vector with polygons' area.
sm_centroid()
: Return a subset_sf
object with polygons' centroid.
sm_intersection()
: Return a subset_sf
object with intersection
between polygons.
sm_subset_union()
: Return a subset_sf
object with union
between intersecting polygons.
sm_rbind()
: Return a subset_sf
object with unique features.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.