Statistical Analysis: an Introduction using R/R/Objects
Appearance
Objects
[edit | edit source]table() is a more advanced version of tabulate(): it doesn't produce a vector, but a "table" object.
![](http://upload.wikimedia.org/wikipedia/commons/thumb/7/72/Nuvola-inspired-terminal.svg/20px-Nuvola-inspired-terminal.svg.png)
'"`UNIQ--pre-00000000-QINU`"'
![](http://upload.wikimedia.org/wikipedia/commons/thumb/e/e7/Crystal_Clear_app_kscreensaver.svg/20px-Crystal_Clear_app_kscreensaver.svg.png)
> table(replicate(1000, max(table(sample(1:6, 5, TRUE))))) 1 2 3 4 5 90 694 198 17 1
You may get slightly different numbers, because of the random nature of the simulation. But over 1000 times, they should even out