[R] Entering a table

Noia Raindrops
Tue, 21 Aug 2012 13:03:06 -0000

Try this:

table(nDeaths = rep(0:4, c(109, 65, 22, 3, 1)))
## or
as.table(array(c(109L, 65L, 22L, 3L, 1L), dimnames = list(nDeaths = 0:4)))

--
Noia Raindrops
noia.raindrops at gmail.com