calculate: Calculate formulas

Description Usage Arguments Value See Also Examples

Description

Calculate formulas

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 

balance_sheet %>% calculate(
  
  current_ratio = AssetsCurrent / LiabilitiesCurrent,
  
  quick_ratio =  
    ( CashAndCashEquivalentsAtCarryingValue + 
        AvailableForSaleSecuritiesCurrent +
        AccountsReceivableNetCurrent
      ) / LiabilitiesCurrent
)

## End(Not run)

bergant/finstr documentation built on May 12, 2019, 3:05 p.m.