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.