Description Usage Arguments Value
View source: R/stratified_sampler.R
Stratified simple random sampling.
1 2 3 4 5 6 7 8 9 10 11 12 | stratified_sampler(
sample.target.frame,
sample.target.frame.strata,
sample.target.frame.samp.size,
pt.data,
pt.data.strata,
pt.data.labels,
target_gdb = NULL,
seed = NULL,
write_kml = TRUE,
write_remaining_sample_csv = TRUE
)
|
sample.target.frame |
data frame with strata, and sample size columns |
sample.target.frame.strata |
name of strata column in sample.target.frame |
sample.target.frame.samp.size |
name of sample size column in sample.target.frame |
pt.data |
pt data object of class |
pt.data.strata |
name of strata column in pt.data |
pt.data.labels |
name of column to label individual kml points |
target_gdb |
folde to output kml files to. If empty/null (default) files will write to current working directory |
seed |
set and save random seed (will set by default) |
write_kml |
logical, write output to kml |
write_remaining_sample_kml |
logical, write remaining sample to csv |
list with each sample as sf object. Exports each item in list to kml file in selected directory
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.