Skip to content
Prev 164166 / 398506 Next

Re sampling with index

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