Skip to content
Back to formatted view

Raw Message

Message-ID: <CAM_vjum=wYpFyJJRAj9Cc=pg2Dv0eUw0W6N54Di=BnOJcUjLCQ@mail.gmail.com>
Date: 2015-05-28T14:00:02Z
From: Sarah Goslee
Subject: Help on Histogram ~ Barplot
In-Reply-To: <1432818784215-4707839.post@n4.nabble.com>

Hello,


> Now I have changed the file to a new file as RData.csv file and now when I
> use the below code it gives me an error
> graph<- read.csv("RData.csv", header = TRUE)

Here you read RData.csv into R as a data frame named graph.

> MonthlyWeight<-by(RData$Weight,names.arg = RData$Month,sum)

So here you need to refer to that data frame using the name you gave it.

Your problem looks like a lack of basic understanding of how R works.
Here are a couple of sources that might help you get started:
http://www.burns-stat.com/documents/tutorials/impatient-r/
http://cyclismo.org/tutorial/R/

Sarah

-- 
Sarah Goslee
http://www.functionaldiversity.org