Displaying 2 results from an estimated 2 matches for "3283049".
2010 Aug 27
1
Band-wise Sum
...subset(df_sorted, rating=="B")
df_sorted_CCC <- subset(df_sorted, rating=="CCC")
## we begin with BBB rating. The R output for df_sorted_BBB is as follows
> df_sorted_BBB
rating ead
4 BBB 9530149
8 BBB 6000000
16 BBB 3000
20 BBB 3283049
21 BBB 1200000
30 BBB 9500000
32 BBB 1501940
My problem is I need to totals of eads falling in the respective bands
I
am defining bands in millions as
seq_BBB <- seq(1000000, max(df_sorted_BBB$ead), by = 1000000)
# The output is
[1] 1e+06 2e+06 3e+06 4e+06 5e+06 6e+06...
2010 Aug 30
2
Band-wise Conditional Sum - Actual problem
...orted_CCC <- subset(df_sorted, rating=="CCC")
>
> ## we begin with BBB rating. The R output for df_sorted_BBB is as follows
>
>> df_sorted_BBB
>
rating ead
> 4 BBB 9530149
> 8 BBB 6000000
> 16 BBB 3000
> 20 BBB 3283049
> 21 BBB 1200000
> 30 BBB 9500000
> 32 BBB 1501940
>
> My problem is I need to totals of eads falling in the respective bands
>
> I
> am defining bands in millions as
>
> seq_BBB <- seq(1000000, max(df_sorted_BBB$ead), by = 1000000)
>
>...