[R] sample matrix

From: Carlos Mauricio Cardeal Mendes <mcardeal_at_ufba.br>
Date: Tue 13 Dec 2005 - 23:26:51 EST


Please, IŽd like to store this sample matrix as a new object. How can I do this ?

pulse <- c(67, 67, 68, 68, 68, 69, 69, 69, 69, 69, 70, 70, 70, 70, 71, 71, 72, 72, 73, 74)
m <- NULL
x <- 0
for (i in 1:5)
{
x <- sample(pulse,3)
m <- mean(x)
cat(x,m,"\n")
}

Thanks,
Mauricio



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 Received on Wed Dec 14 00:33:02 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:35 EST