Re: [R] Make the output (from a Loop function) a Vector

2009-12-27 Thread Uwe Ligges
David Winsemius wrote: On Dec 27, 2009, at 11:17 AM, Cat Morning wrote: Hi all, I have made a loop function which prints outputs. For example: for (i in 1:5) + print(i) [1] 1 [1] 2 [1] 3 [1] 4 [1] 5 However, I would like the output to given as a list or a vector, e..g c(1,2,3,4,5). Is i

Re: [R] Make the output (from a Loop function) a Vector

2009-12-27 Thread David Winsemius
On Dec 27, 2009, at 11:17 AM, Cat Morning wrote: Hi all, I have made a loop function which prints outputs. For example: for (i in 1:5) + print(i) [1] 1 [1] 2 [1] 3 [1] 4 [1] 5 However, I would like the output to given as a list or a vector, e..g c(1,2,3,4,5). Is it possible to do this?

[R] Make the output (from a Loop function) a Vector

2009-12-27 Thread Cat Morning
Hi all, I have made a loop function which prints outputs. For example:  for (i in 1:5) + print(i) [1] 1 [1] 2 [1] 3 [1] 4 [1] 5 However, I would like the output to given as a list or a vector, e..g c(1,2,3,4,5). Is it possible to do this? (The function I am using outputs many 1000s of results