View source: R/grouped_random_sample.R
grouped_random_sample | R Documentation |
Take a simple random sample by a group
grouped_random_sample( data = NA, group_name = "strata", n = 20, stream_order = "STREAM_ORDER" )
data |
A data object of class |
group_name |
String. Column name for the strata to sample across. It is assumed that |
n |
Sample size n for each stratum |
stream_order |
Column name for stream order. Defaults to STREAM_ORDER. |
Note that there is no repeat sampling or replacement. If the sample size n
exceeds the number of stream crossings in a stratum, then only the limited number of available crossings will be returned.
Stream order should be labelled as STREAM_ORDER.
A object of class sf
of sample features.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.