I am having trouble with paste function. I dont know how to proceed. I tried many options but i failed miserably. I am using a variable f1 to assign a string as below: f1=dataLine[locAffyProbeID]; ( the value of f1 is 244901_at ) Then I am using the paste function paste("set @g1=", f1); instead of getting set at g1=244901_at, I am getting set @g1=23. I am not able to understand why it is so. Can anyone help!!!!!!!Please.. Thanks -- View this message in context: http://www.nabble.com/PRoblem-with-paste-function-tp25261314p25261314.html Sent from the R help mailing list archive at Nabble.com.
Hi there!!! I am having trouble with *paste* function. I dont know how to proceed. I tried many options but i failed miserably. I am using a variable f1 to assign a string as below: f1=dataLine[locAffyProbeID]; ( the value of f1 is *244901_at* ) Then I am using the paste function paste("set @g1=", f1); instead of getting *set@g1=244901_at*, I am getting *set @g1=23*. I am not able to understand why it is so. Can anyone help!!!!!!!Please.. Thanks [[alternative HTML version deleted]]
Hi there!! I am having trouble with *paste* function. I dont know how to proceed. I tried many options but i failed miserably. I am using a variable f1 to assign a string as below: f1=dataLine[locAffyProbeID]; ( the value of f1 is *244901_at* ) Then I am using the paste function paste("set g=", f1); instead of getting *set g=244901_at*, I am getting *set g=23*. I am not able to understand why it is so. Can anyone help!!!!!!!Please.. Thanks -- Mohammad Fahim [[alternative HTML version deleted]]
Do str(f1) . What does it return?> paste("set @g1=", "244901_at")[1] "set @g1= 244901_at" works fine, so it must be your data is not what you think it is. On Wed, Sep 2, 2009 at 1:03 PM, Fahim Md<fahim.md at gmail.com> wrote:> Hi there!!! > I am having trouble with *paste* function. I dont know how to proceed. I > tried many options but i failed miserably. > I am using a variable f1 to assign a string as below: > > f1=dataLine[locAffyProbeID]; > > ?( the value of f1 is *244901_at* ) > > Then I am using the paste function > ?paste("set @g1=", f1); > > instead of getting *set at g1=244901_at*, I am getting *set @g1=23*. > > I am not able to understand why it is so. > Can anyone help!!!!!!!Please.. > Thanks > > ? ? ? ?[[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. >-- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve?