Skip to contents

Get and Set Channel Width

Usage

ch_width(cross_section)

ch_width(cross_section) <- value

Arguments

cross_section

A "cross_section" object representing a stream's cross section.

value

Channel width in meters; single positive numeric.

Value

Cross section width; single numeric.

Examples

cs <- cross_section(3, grad = 0.01, d50 = 45, d84 = 90, roughness = 0.01)
ch_width(cs)
#> [1] 3
ch_width(cs) <- 10
cs
#> Channel with width 10