Learn R Programming

finstr (version 0.1.2.9000)

calculate: Calculate formulas

Description

Calculate formulas

Usage

calculate(x, ..., digits = NULL, decimals = NULL, calculations = NULL)

Arguments

x
a statement object
...
list of formulas
digits
if specified the result will be rounded according to number of digits
decimals
if specified the result will be multiplied by 10^decimals
calculations
optional: calculations generated by calculation function

Value

data frame with date and specified columns

See Also

calculation

Examples

Run this code
## Not run: ------------------------------------
# 
# balance_sheet %>% calculate(
#   
#   current_ratio = AssetsCurrent / LiabilitiesCurrent,
#   
#   quick_ratio =  
#     ( CashAndCashEquivalentsAtCarryingValue + 
#         AvailableForSaleSecuritiesCurrent +
#         AccountsReceivableNetCurrent
#       ) / LiabilitiesCurrent
# )
## ---------------------------------------------

Run the code above in your browser using DataLab