Hi guys, Can anyone tell me what is the meaning of following command ? paste(execDir,paste(short,"myfile",sep="_"),sep="\") R gives me an error : Error: object 'short' not found I tried to find help about 'short' in R, but could not find any such function/ object. Viki [[alternative HTML version deleted]]
Hi Viki, On Tue, Oct 19, 2010 at 10:03 AM, Viki S <isvik at live.com> wrote:> > Hi guys, > Can anyone tell me what is the meaning of following command ? > > paste(execDir,paste(short,"myfile",sep="_"),sep="\")The command means paste together the values in the variable execDir with the pasted-together values in short and "myfile"> > R gives me an error : > > Error: object 'short' not found > > I tried to find help about 'short' in R, but could not find any such function/ object.because it does not exist, as the error message informed you. You need to create it, or, if you want the literal string "short", then you need to put it in quotes. -Ista> > Viki > > ? ? ? ?[[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. >-- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org
On Oct 19, 2010, at 10:03 AM, Viki S wrote:> > Hi guys, > Can anyone tell me what is the meaning of following command ? > > paste(execDir,paste(short,"myfile",sep="_"),sep="\") > > R gives me an error : > > Error: object 'short' not found > > I tried to find help about 'short' in R, but could not find any such > function/ object.You are the one who is asking R to find a value for an object named "short". paste(execDir,paste(short,"myfile",sep="_"),sep="\") ^^^^^ Since you are posting in HTML, it is also possible that your mail client is going to display this in a proportional font and the the "^^^" will not be aligned with the word "short". You should fix the settings of you mail client in both these areas.> > Viki > > [[alternative HTML version deleted]]David Winsemius, MD West Hartford, CT
Hi, R tells you that you don't have any object called "short" in your workspace. From your question, I would guess that you don't plan to have it. What do you want the output of paste(...) to look like? Which parts are supposed to be called through objects (that contain characters), which ones directly as strings? Ivan Le 10/19/2010 16:03, Viki S a ?crit :> Hi guys, > Can anyone tell me what is the meaning of following command ? > > paste(execDir,paste(short,"myfile",sep="_"),sep="\") > > R gives me an error : > > Error: object 'short' not found > > I tried to find help about 'short' in R, but could not find any such function/ object. > > Viki > > [[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. >-- Ivan CALANDRA PhD Student University of Hamburg Biozentrum Grindel und Zoologisches Museum Abt. S?ugetiere Martin-Luther-King-Platz 3 D-20146 Hamburg, GERMANY +49(0)40 42838 6231 ivan.calandra at uni-hamburg.de ********** http://www.for771.uni-bonn.de http://webapp5.rrz.uni-hamburg.de/mammals/eng/mitarbeiter.php
HI, I am trying to run this code pdf(file="Biology_2012_GOF.pdf", width=8.5, height=4.5) grid.draw(my.sgpd$Goodness_of_Fit$Biology_2012$Q1_Q2) dev.off() I get an error mesage "object not found"- can someone please help? Kavita -- View this message in context: http://r.789695.n4.nabble.com/Error-object-short-not-found-tp3002159p4407151.html Sent from the R help mailing list archive at Nabble.com.