Description Usage Arguments Value
Function calculates total cost from a data.frame containing purchased items.
1 | getTotalCost(costTab, decimal = TRUE)
|
costTab |
a data.frame with a list of purchased items. Requires a column called 'Cost' |
decimal |
if TRUE then function will format cost value to have 2 decimal places. |
Function returns total cost of purchased items as numeric (if decimal
is FALSE)
or as character string (when decimal
is TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.