search for: s_bbb

Displaying 2 results from an estimated 2 matches for "s_bbb".

2010 Aug 27
1
Band-wise Sum
...+06 5e+06 6e+06 7e+06 8e+06 9e+06 So for the sub data pertaining to Rating "BBB", I want corresponding ead totals i.e. I want ead totals where ead < 1e+06, then I want ead totals where 1+e06 < ead < 2e+06, 2e+06 < ead < 3e+06 ...and so on. I have tried the following code s_BBB <- NULL for (i in 1:length(s_BBB)) { s_BBB[i] = sum(subset(df_sorted_BBB$ead, df_sorted_BBB$ead < s_BBB[i])) } I was trying to find totals of eads < 1e+06, ead < 2e+06, ead<3e+06 and so on. but the result is > s_BBB [1] 0 I apologize if I am not able to express my problem p...
2010 Aug 30
2
Band-wise Conditional Sum - Actual problem
...06 > > So for the sub data pertaining to Rating "BBB", I want corresponding ead totals i.e. I want ead totals where ead < 1e+06, then I want ead totals where 1+e06 < ead < 2e+06, 2e+06 < ead < 3e+06 ...and so on. > > I have tried the following code > > s_BBB <- NULL > > for (i in 1:length(s_BBB)) > { > s_BBB[i] = sum(subset(df_sorted_BBB$ead, df_sorted_BBB$ead < s_BBB[i])) > } > > I was trying to find totals ofads < 1e+06, ead < 2e+06, ead<3e+06and so on. > > but the result is > >> s_BBB > [1] 0...