Message-ID: <183AB3B3-BB4C-4683-AF26-4027B2A12E65@gmail.com>
Date: 2011-12-07T19:17:29Z
From: michael.weylandt at gmail.com (R. Michael Weylandt
Subject: Object xxx not found
In-Reply-To: <4EDF72EC020000930000BD35@gwise.up.ac.za>
You never create a "sector" object inR so it can't be found. Perhaps you meant
hist(SouthAfrica$exports)
Michael
On Dec 7, 2011, at 7:06 AM, "John Visagie" <John.Visagie at up.ac.za> wrote:
> Dear All,
>
> I am having a very basic error, but somehow do not know how to resolve it. I've read a dataset in .csv into R with two columns - sector, export. When trying to plot the data it says "sector not found" This is the formula.
>
> SouthAfrica<-read.csv(c,header=T)
>> hist(sector$exports,xlab="exports (MtCO2)",main="CO2 Exports")
>
> Error in hist(sector$exports, xlab = "exports (MtCO2)", main = "CO2 Exports") :
> object 'sector' not found
>
> Could somebody please assist?
>
> Kind regards,
>
> John
>
> [[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.