Hi, Please find attached rcode and my data.There seems to be a problem in the following rcodes: plot(diet~class.f, data=nuru) points(pred.mod1~midpoints,type="b") please I need your help. Kind Regards, Nuru -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: NS.diet.txt URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130820/768283eb/attachment.txt>
HI, nuru<- read.table("NS.diet.txt",header=TRUE,stringsAsFactors=FALSE,sep="\t",fill=TRUE,check.names=FALSE) colnames(nuru) # [1] "Species"?????????????? "Fish ID"?????????????? "Date"???????????????? ?#[4] "Time"????????????????? "Depth (m)"???????????? "Haul.No."???????????? ?#[7] "Longitude"???????????? "Latitude"????????????? "Stat.Rect"??????????? #[10] "hake.length"?????????? "Tot.Weight (g)"??????? "Maturity"???????????? #[13] "Sex"?????????????????? "Stomach contents(1/0)" "Gutted.Weight (g)"??? plot(diet~class.f, data=nuru) ## `diet` and `class.f` columns are not found in the dataset. A.K. ----- Original Message ----- From: "Garkuwa, Nuru Adamu" <nuru.garkuwa.11 at aberdeen.ac.uk> To: "r-help at r-project.org" <r-help at r-project.org> Cc: Sent: Tuesday, August 20, 2013 1:52 PM Subject: [R] rcode problem Hi, Please find attached rcode and my data.There seems to be a problem in the following rcodes: plot(diet~class.f, data=nuru) points(pred.mod1~midpoints,type="b") please I need your help. Kind Regards, Nuru ______________________________________________ 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.
Your data arrived but no code. The R help list is fussy about what type of files you can attache. For an alternative approach have a look at http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada> -----Original Message----- > From: nuru.garkuwa.11 at aberdeen.ac.uk > Sent: Tue, 20 Aug 2013 17:52:42 +0000 > To: r-help at r-project.org > Subject: [R] rcode problem > > Hi, > > > > Please find attached rcode and my data.There seems to be a problem in the > following rcodes: > > plot(diet~class.f, data=nuru) > points(pred.mod1~midpoints,type="b") > > > > please I need your help. > > > > Kind Regards, > > Nuru > > > ______________________________________________ > 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.____________________________________________________________ FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family! Visit http://www.inbox.com/photosharing to find out more!