From: Alexander Geisler <alexander.geisler_at_gmail.com>

Date: Thu 07 Dec 2006 - 00:20:49 GMT

R-help@stat.math.ethz.ch 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. Received on Thu Dec 07 12:21:46 2006

Date: Thu 07 Dec 2006 - 00:20:49 GMT

Hello!

ergebnisse <- rep(0, each=2)

stichproben <- rep(0, each=2)

for (i in seq(1:2)) {

n <- dim(daten)[1]

ix <- sample(n,200) # producing samples
samp_i <- daten[ix,]

stichproben[i] <- samp_i # doesnâ€™t works

Question:

How is the easiest way to save this samples. My code doesn't work, only
the first column of the sample samp_i is in stichproben[i]. I understand
why.

My idea is to define a array stichproben and then save a matrix in the
particular fields of the array. But things like
y <- matrix(c(samp_1),nrow=200, ncol=8)

and then saving y in the array stichproben doesn't work.
How is it possible to define a matrix with the content of my samples
(samp_i) and but them into an array stichproben?
Or is there an easier way?

R-help@stat.math.ethz.ch 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. Received on Thu Dec 07 12:21:46 2006

Archive maintained by Robert King, hosted by
the discipline of
statistics at the
University of Newcastle,
Australia.

Archive generated by hypermail 2.1.8, at Thu 07 Dec 2006 - 18:30:21 GMT.

*
Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help.
Please read the posting
guide before posting to the list.
*