Displaying 1 result from an estimated 1 matches for "total_cashflow_pv".
2013 Apr 29
2
Adding elements in data.frame subsets and also subtracting an element from the rest elements in data.frame
...426.6407
43 UVWXYZ 4 808000 676427.7274
44 UVWXYZ 5 8000 7427.1225
45 UVWXYZ 5 808000 676532.6262
# ===============================================
# My PROBLEM
For a given instrument and id, I need the totals of cashflow and cashflows_pv and also the difference of (total_cashflow_pv pertaining to the first ID for the given instrument from total_cashflow_pv for the same instrument) as shown in the fourth column of following output.
output
instrument id total_cashflow total_cashflow_pv
1 ABC 1 515000 440571.02
2 ABC 2 515000 ...