#' Calculate stream discharge
#'
#' @param widths Transect measurement points
#' @param depths Depth measurements
#' @param velocity Velocity measurements
#' @return a numeric
#' @export
discharge <- function(widths, depths, vel){
sum(widths * depths * vel)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.