Re: [R] APPLY as alternate to FOR loop?

2008-04-02 Thread Johannes Hüsing
[EMAIL PROTECTED] [EMAIL PROTECTED] [Mon, Mar 31, 2008 at 07:02:25AM CEST]: As far as I know there is no function called 'APPLY' There is one called 'apply', but why are you determined to use it here? It is essentially concealed looping. I always use apply instead of for when the steps can

Re: [R] APPLY as alternate to FOR loop?

2008-03-30 Thread Bill.Venables
As far as I know there is no function called 'APPLY' There is one called 'apply', but why are you determined to use it here? It is essentially concealed looping. Here is an alternative way of solving your problem: ___ x - rbind(x1 = c(1, NA, NA, NA, NA, 1, 2, 2), x2 = c(1, NA, NA,