View source: R/check_cross_section_dimensions.R
check_cross_section_dimensions | R Documentation |
Checks that the input data structure 'cross_section_dimension' meets the requirements for this data structure.
check_cross_section_dimensions(
cross_section_dimensions,
step = c("level_1", "cross_section_dimensions", "shear_stress", "stream_power",
"planform", "metric_ratios")
)
cross_section_dimensions |
data frame, sf: A 'cross_section_dimension' data structure used by the fluvgeo package. |
step |
character; Last completed processing step. One of "level_1", "cross_section_dimensions", "shear_stress, "stream_power", "planform", "metric_ratios" |
Cross section dimension feature classes evolve as different steps are performed on them. The 'step' parameter allows a 'cross section_dimension' data structure to be checked throughout its lifecycle. Each step defines a changing set of requirements for the 'cross section_dimension' data structure.
Returns TRUE if the 'cross_section_dimension' data structure matches the requirements. The function throws an error for a data structure not matching the data specification. Returns errors describing how the the data structure doesn't match the requirement.
# Step: cross_section_dimensions
xs_dims <- cross_section_dimensions_L2(xs = fluvgeo::sin_riffle_channel_sf,
xs_points = fluvgeo::sin_riffle_channel_points_sf,
bankfull_elevation = 103,
lead_n = 1,
use_smoothing = TRUE,
loess_span = 0.5,
vert_units = "ft")
check_cross_section_dimensions(xs_dims, "cross_section_dimensions")
# Step: shear stress
xs_dims_ss <- shear_stress(xs_dims)
check_cross_section_dimensions(xs_dims_ss, "shear_stress")
# Step: stream_power
xs_dims_sp <- stream_power(xs_dims_ss,
discharge_method = "regional_curve",
region = "Illinois River",
drainage_area = 41)
check_cross_section_dimensions(xs_dims_sp, "stream_power")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.