Re: [R] Problem with substr

2011-11-15 Thread Sarah Goslee
Hi, On Tue, Nov 15, 2011 at 4:31 PM, sophy1987 wrote: > Hi, everyone > When I ran this cript,  There is Error in substring(tmp.subject, tmp.end[ex] > + 1, tmp.start[ex + 1] - 1) : >  invalid substring argument(s) > > Could someone figure out what the problem is? Not without a reproducible exampl

[R] Problem with substr

2011-11-15 Thread sophy1987
Hi, everyone When I ran this cript, There is Error in substring(tmp.subject, tmp.end[ex] + 1, tmp.start[ex + 1] - 1) : invalid substring argument(s) Could someone figure out what the problem is? for(i in 1:length(genebody[,1])){ tmp.id<-as.vector(genebody[i,1])