View source: R/road_proximity_sample.R
road_proximity_sample | R Documentation |
Road Proximity Sample for Site Type B
road_proximity_sample( n = 20, strm = NA, roads = NA, buffer_s1_m = 20, buffer_s2_m = 40, buffer_crossings_m = 100, small_strm_segment_m = 50, stream_order = "STREAM_ORDER" )
n |
Sample size n for each stratum. Defaults to 20. |
strm |
A streamline data set of class |
roads |
A road network data set of class |
buffer_s1_m |
Numeric. Buffer size (in meters) for Strata 1 streams < 3rd order. Defaults to 20 m. |
buffer_s2_m |
Numeric. Buffer size (in meters) for Strata 2 streams >= 3rd order. Defaults to 40 m. |
buffer_crossings_m |
Numeric. Exclusion buffer size (in meters) to stream-road crossings to exclude sample sites from Site Type A. Defaults to 100 m. |
small_strm_segment_m |
Numeric. Remove small stream-road buffered segments unless they are near a switch-back (determined manually and added at end). Default small segment size is set to 50 m. |
stream_order |
String. Column name for stream order. Defaults to |
WSEP Tier II Road Proximity Sample for Site Type B
Apply a buffer (20m for < 3rd order and 40 m for ≥ 3rd order) streams.
Taking the intersection of roads and this buffer
Removing any stream crossings (Site Type A), by excluding any cases within 100 m of a crossing to avoid double counting
Removing any segments < 50m in length unless they are near a switch-back (determined by manual review of the map). Switch-back determination is an optional manual step not automated in R code
Providing the start point of the segment as well as the segment length and strata id (< 3rd order vs. ≥ 3rd order) and mapping the entire segment on the field maps to facilitate sampling
Generate a random sample from the Site Type B list the strata with < 3rd order streams
Append the complete list of Site Type B from the ≥ 3rd order strata
Create a field checklist with at least the following fields: unique identifier (e.g., WatershedName_SD_B_001), coordinates of start point and end point, segment length, and Strata
Note that there is no repeat sampling or replacement. If the sample size n
exceeds the number of segments available for a stratum, then only the limited number of available locations will be returned.
A object of class sf
of sample features representing sample sites.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.