You can use gsub() to replace parts of strings. Sarah
On Saturday, December 3, 2011, arunkumar1111 <akpbond...@gmail.com> wrote: > Hi > > I have column name as given below > > If the variable is in log(X1 + 1) pattern it should be removed and i need > only X1 > > Input > log(x1 + 1) > x2 > log(X3 +1) > > Expected Output X1 X2 X3 > > Please help me > > > -- > View this message in context: http://r.789695.n4.nabble.com/help-in-removal-of-fixed-pattern-tp4152524p4152524.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-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Sarah Goslee http://www.stringpage.com http://www.sarahgoslee.com http://www.functionaldiversity.org [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.