general_functions {segmetric} | R Documentation |
General functions
Description
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.
Usage
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)
Arguments
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 |
Value
-
sm_area()
: Return anumeric
vector with polygons' area. -
sm_centroid()
: Return asubset_sf
object with polygons' centroid. -
sm_intersection()
: Return asubset_sf
object with intersection between polygons. -
sm_subset_union()
: Return asubset_sf
object with union between intersecting polygons. -
sm_rbind()
: Return asubset_sf
object with unique features.