Re: [R] PRoblem with paste function

2009-09-02 Thread jim holtman
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 wrote: > Hi there!!! > I am having trouble with *paste* function. I dont know how to proceed. I

[R] PRoblem with paste function

2009-09-02 Thread Fahim Mohammad
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); in

Re: [R] problem with paste function

2009-09-02 Thread Duncan Murdoch
On 9/2/2009 1:28 PM, Phil Spector wrote: Fahim - Apparently dataline is a factor, so you'd need to use paste('set g=',as.character(f1)) That shouldn't be necessary: > f1 <- factor("abc") > paste('set g=', f1) [1] "set g= abc" I think we need reproducible code to diagnose this one.

Re: [R] problem with paste function

2009-09-02 Thread Phil Spector
Fahim - Apparently dataline is a factor, so you'd need to use paste('set g=',as.character(f1)) - Phil Spector Statistical Computing Facility Department of Statistics

[R] problem with paste function

2009-09-02 Thread Fahim Md
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=",

[R] PRoblem with paste function

2009-09-02 Thread Fahim Md
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