New to R coming from SAS...
I want to create a vector of 1,000 random numbers for each row using the function
runif(1,000, min = 0, max = 1)
and add it to my data.frame.
Trying this gives me the same number on each row:
EL$randoms <- runif(1, min = 0, max = 1)
How do I solve this simple problem?
,inrunif(1,000...).. not sure though. - Arun,back to make sure. - Julius Vainora