search for: call_rr

Displaying 1 result from an estimated 1 matches for "call_rr".

Did you mean: call_r
2010 Oct 08
3
Efficiency Question - Nested lapply or nested for loop
...econd column. (Note that the ranges between rows and columns are one off. That is accounted for in the code.) In reality the data will be much bigger, containing 10000 rows and a variable number of columns (inds) between 10 and 500. The correct result is: > cmat tru_rr tru_rv tru_vv call_rr 2 2 0 call_rv 0 4 0 call_vv 0 0 4 I am not sure what the best way to do this is. I implemented it once using two for loops. Then I tried to use lapply and came up with a nested lapply solution, but it was slower than the simple loops. I still think...