[R] How to randomize a set of integers in R

Olaf Mersmann olafm at tako.de
Thu Aug 19 15:59:28 CEST 2004

Hi Susanne,
* Susanne Osterkamp <sokamp at web.de> [040819 15:52]:
> Hello,
> I want  to validate my data for working with CART.
> I need to now how to create a randomized column of some 6800 intgers
> within R. 

Do you want to sample 6800 random integers? In that case try ?runif
(for uniform distribution) 

If you want to resample 6800 integers try ?sample

Olaf Mersmann

More information about the R-help mailing list