search for: 22apply

Displaying 2 results from an estimated 2 matches for "22apply".

2009 Oct 01
1
Help me replace a for loop with an "apply" function
...------ --- end of R code Unfortunately this for loop takes too long and I' wondering if there is a way to produce the res matrix using a function from the "apply" family. Thank you in advance -- View this message in context: http://www.nabble.com/Help-me-replace-a-for-loop-with-an-%22apply%22-function-tp25696937p25696937.html Sent from the R help mailing list archive at Nabble.com.
2009 Sep 14
2
Which "apply" function to use?
Dear All, I have a problem which *should* be pretty straightforward to resolve - but I can't work out how! I have a list of 3 coefficient estimates for 4 different datasets: Coefs<-list(c(1,0.6,0.5),c(0.98,0.65,0.4),c(1.05,0.55,0.45),c(0.99,0.50,0.47)) All I want to do is take the sum (or mean) of each coefficient across the 4 datasets. I can do this using a "for" loop, but