[R] Is there a quick way to count the number of times each element in a vector appears?

Alberto Monteiro albmont at centroin.com.br
Tue Mar 6 12:13:18 CET 2007


Dylan Arena wrote:
> 
> I'm writing a function that calculates the probability of different
> outcomes of dice rolls (e.g., the sum of the highest three rolls of
> five six-sided dice).
>
You know there are simpler ways to do this, don't you?

Alberto Monteiro



More information about the R-help mailing list