[R] Re sampling with index

legendy junli at uab.edu
Tue Dec 9 18:19:44 CET 2008


Hallo, All,

I have a question needs your help.
I just want get a sample with the original index. For example, I have a
dataset,

ind  x
1    39
2    24
3    15
4    75
5    61

After resample, I want to get a new dataset like this (with the original
index)

ind  x
3    15
5    61
1    39

Thank you in advance.

Legendy





-- 
View this message in context: http://www.nabble.com/Resampling-with-index-tp20919265p20919265.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list