Re: [R] String truncate

2010-07-09 Thread jd6688
Thanks so lot -- View this message in context: http://r.789695.n4.nabble.com/String-truncate-tp2284045p2284069.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-h

Re: [R] String truncate

2010-07-09 Thread jd6688
Thanks this works On Fri, Jul 9, 2010 at 4:32 PM, Wu Gong [via R] < ml-node+2284062-824667456-312...@n4.nabble.com > wrote: > Do you mean substring? > > sub(".txt","", "mytest.txt") > A R learner. > > > -- > View message @ > http://r.789695.n4.nabble.com/String-trunc

[R] String truncate

2010-07-09 Thread jd6688
one string named as: mytest.txt how can I remove the .txt and return the mytest only. i tried split substr, and grep didn't work it out, Thanks so lot -- View this message in context: http://r.789695.n4.nabble.com/String-truncate-tp2284045p2284045.html Sent from the R help mailing list archi

Re: [R] String truncate

2010-07-09 Thread Wu Gong
Do you mean substring? sub(".txt","", "mytest.txt") - A R learner. -- View this message in context: http://r.789695.n4.nabble.com/String-truncate-tp2284045p2284062.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-projec