[R] Help on Histogram ~ Barplot
kmwolf at ucdavis.edu
Thu May 28 16:08:52 CEST 2015
I don't know why that doesn't work, but try adding in
In your read.csv()
That shouldn't matter as to whether or not it recognizes your object though, but it will matter in how your object is read.
Other simple things might be to make sure the file is saved and then close it out to make sure there is no open dialog box preventing the save from occurring. Then run the read.csv again and see if the object shows up in R.
PhD Candidate, Graduate Group in Ecology
M.S. Soil Science, B.S. Animal Science
Restoration Ecology Lab
Department of Plant Sciences
University of California, Davis
> On May 28, 2015, at 6:13 AM, Shivi82 <shivibhatia at ymail.com> wrote:
> HI David,
> So if I understand from your post below, when we import a file in R- we need
> to make sure that the variable names do not have any space nor they should
> be in special characters or not in comma format.
> Please correct me I am wrong.
> 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)
> MonthlyWeight<-by(RData$Weight,names.arg = RData$Month,sum)
> The error is : Error in by(RData$Weight, names.arg = RData$Month, sum) :
> object 'RData' not found. Whereas I checked using "getwd()" this file is
> saved in the working directory.
> Please suggest.
> View this message in context: http://r.789695.n4.nabble.com/Help-on-Histogram-Barplot-tp4707739p4707839.html
> Sent from the R help mailing list archive at Nabble.com.
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help