[R] random value generation in a row

From: Rujealous <pvmescollote_at_gmail.com>
Date: Wed, 20 Apr 2011 16:30:18 -0700 (PDT)

the plan is

i have to create a column with random numbers from 1 to 5 forming a vector with 200 numbers.
these numbers should have the same proportion, like 40 "1", 40 ''2'', etc.



View this message in context: http://r.789695.n4.nabble.com/random-value-generation-in-a-row-tp3464503p3464503.html
Sent from the R help mailing list archive at Nabble.com.

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 21 Apr 2011 - 00:12:15 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 21 Apr 2011 - 00:30:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive