#' Calculate the overall revenue of a trade data frame
#'
#' @param trade_df A data.frame as exported by \code{describe_trades}.
#'
#' @export
#' @return A single number describing the revenue
calc_revenue <- function(trade_df) {
sum(trade_df$volume * trade_df$prices)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.