[R] Counting the numbers of items in vector according to their size

2012-11-09 Thread rlcorp
I am new to R and learned to program 10 years ago in C++. I am currently working a project that looks at the distribution of randomly generated beta values. I take 20 random beta values find their sum, repeat 10 times. Here is my code that it took me 4 hours to get s=numeric(length=10) fo

Re: [R] Running a loop of random generated sums

2012-11-09 Thread rlcorp
I also would like to sort the values that are greater than 10 in one vector and less than or equal to 10 in another vector. -- View this message in context: http://r.789695.n4.nabble.com/Running-a-loop-of-random-generated-sums-tp4649013p4649070.html Sent from the R help mailing list archive at