R basics: Working with data
R basics: Working with data
R basics: Working with data
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Data <strong>basics</strong> Data manipulation Basic <strong>data</strong> analysis Exercises Conclusions<br />
Random permutations<br />
Obtain a permutation:<br />
R> sample(10)<br />
[1] 5 4 2 10 3 8 1 6 7 9<br />
R> sample(x)<br />
[1] -0.6760739 0.4840535 -0.5020036 -0.1888176<br />
[5] 2.2400438 1.9244055 4.1791331 3.3880320<br />
[9] -0.2963982 -3.5889621<br />
40 / 54