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

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