area_between: A function to calculate area between two profiles

View source: R/area_between.R

area_betweenR Documentation

A function to calculate area between two profiles

Description

This function takes two profiles defined as (l1,z1) and (l2,z2) as inputs and calculates area between them

Usage

area_between(s1, s2 = NA, h = NA, sigma_z = c(NA, NA), sigma_l = c(NA, NA))

Arguments

s1

tibble with columns l and z describing first profile

s2

tibble with columns l and z describing second profile

h

if provided by user, the second profile is supposed to be horizontal, with constant height=h (defaults to NA)

sigma_z

a vector of length 1 or 2 providing an estimate of the error in measures of height z1 and z2

sigma_l

a vector of length 1 or 2 providing an estimate of the error in measures of longitudinal coordinates l1 and l2z1 and z2

Value

area

area_by_type

sigma_area

data

Examples

data(s1)
data(s2)
area_between(s1,s2)
area_between(s1,h=-5)

lvaudor/riverbed documentation built on Feb. 25, 2023, 3:47 p.m.