Re: [R] random sampling matrix

2012-12-18 Thread Daniel Nordlund
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of ??? > Sent: Tuesday, December 18, 2012 9:08 PM > To: r-help@r-project.org > Subject: [R] random sampling matrix > > Hello > > > > I have

[R] random sampling matrix

2012-12-18 Thread 김지현
Hello I have a one question about random sampling matrix I want to regeneration value of matrix For example, Matrix A : 1 2 3 11 12 13 21 22 23 . > sample= data.frame(a[sample(1:dim(a)[1]),sample(1:dim(a)[2])]) Then, Matrix sample : 21 23 22 11 13 12 1 3 2 But, I want