[R] New Sampling question

wangwallace talenttree at gmail.com
Thu Nov 18 17:45:05 CET 2010


Hi, Mike,

thank you very much!!:)

the following two functions are really helpful, which I didn't even know.
Actually, I searched the forum for something like this, but failed. Now I am
still trying to make up my own functions. :)

sample(a[,2],2) #randomly draw two numbers from a column

sample(a[2,],2) #randomly draw two numbers from a row 
-- 
View this message in context: http://r.789695.n4.nabble.com/New-Sampling-question-tp3047885p3049083.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list