[R] Entering a table

Thomas Thomas.Chesney at nottingham.ac.uk
Tue Aug 21 15:54:37 CEST 2012


I've no idea why, but both seemed to work perfectly. I'll work through  
the help files to see if I can figure it out.

Thank you!

Thomas

On 21 Aug 2012, at 14:03, Noia Raindrops wrote:

> 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
>
>
>


This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.




More information about the R-help mailing list