Re: [R] Problem with Loop and overwritten results

2009-04-13 Thread unbekannt
thank you so much! this solved my problem unbekannt wrote: > > > Dear all, > > I am a newbie to R and practising at the moment. > > Here is my problem: > > I have a programme with 2 loops involved. > The inner loop get me matrices as output and safes all values for me. > > Now once

Re: [R] Problem with Loop and overwritten results

2009-04-12 Thread David Winsemius
Dear unbekannt; The construction that would append a number to a numeric vector would be: vec <- c(vec , number) You can create an empty vector with vec <- c() or vec <- NULL -- David Winsemius On Apr 12, 2009, at 2:10 PM, unbekannt wrote: Dear all, I am a newbie to R and practising a

[R] Problem with Loop and overwritten results

2009-04-12 Thread unbekannt
Dear all, I am a newbie to R and practising at the moment. Here is my problem: I have a programme with 2 loops involved. The inner loop get me matrices as output and safes all values for me. Now once I wrote a 2nd loop around the other loop in order to repeat the inner loop a couple of