knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" ) library(excess)
The excess
package is designed to provide a set of tools and workflows to analyze and interpret hydrological cross-sectional data. This package is currently in development, so use with caution :smile:.
You can install the development version of excess from GitHub with:
# install.packages("devtools") devtools::install_github("brownhr/excess")
Under the hood, the xs_area()
function calculates the area of a cross-section through use of the trapezoidal rule, as provided by the pracma
package.
library(excess) library(units) library(dplyr) head(testxs)
## If you can't find the `testdata` object, load it with data() data(testxs)
testxs %>% xs_area(tape = TAPE, depth = InvertRod, baseline = Bankful, sum_area = T)
You can visualize cross-sections with xs_ribbon()
xs_ribbon(testxs)
For more information, check out the vignettes by navigating to https://brownhr.github.io/excess
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.