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, so is not easy to change to a vector manually.) Many Thanks. [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.