[R] PRoblem with paste function

jim holtman jholtman at gmail.com
Wed Sep 2 22:53:39 CEST 2009


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?




More information about the R-help mailing list