[R] help
rex.dwyer at syngenta.com
rex.dwyer at syngenta.com
Mon Feb 28 18:15:27 CET 2011
Generally, you can save your excel spreadsheet as comma-separated values, and then read with read.csv function: ?read.csv
Or, tab-separated values and use read.delim.
Then look at ?barplot
Possibly you would like to read the Intro to R on the CRAN website. Go to www.r-project.org , find Documentation in the menu on the left, and click on Manuals.
HTH
Rex
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Laura Clasemann
Sent: Monday, February 28, 2011 10:03 AM
To: r-help at r-project.org
Subject: [R] help
Hi,
I was wondering if anyone could provide me with help in entering the dataset below into R? I've been having a hard time in trying to figure out how to assemble it into both a frequency table and a bar graph within R. I've been trying to present the way I had the data arranged, as below, in Excel Spreadsheet into R. I am uncertain what the correct commands and exact techniques are into getting it correctly organized in R. Any help would be greatly appreciated! Thank you!
Diet
Binger-Yes
Binger-No
Total
None
24
134
158
Healthy
9
52
61
Unhealthy
23
72
95
Dangerous
12
15
27
Laura
[[alternative HTML version deleted]]
______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
message may contain confidential information. If you are not the designated recipient, please notify the sender immediately, and delete the original and any copies. Any use of the message by you is prohibited.
More information about the R-help
mailing list