Message-ID: <1329992901605-4413481.post@n4.nabble.com>
Date: 2012-02-23T10:28:21Z
From: TwistedSkies
Subject: multiple gsub
Hi Guys,
I am relatively new to R and was wondering if I could next my gsub command
in identifying one object
I have data which looks like this: <name>Taiwan_250km</name>
I want it to look like this: Taiwan_250km
So essentially I just want to gsub '<name>' and </name> with nothing!
So far I have got this: PolyNam <-
unlist(strsplit(gsub("</name>","",PolyRaw[PolyLin],fixed = TRUE)," "))
Which removes the end tag, just wondering how I can nest 2 gsubs to remove
both?!
Thanks in advance!
--
View this message in context: http://r.789695.n4.nabble.com/multiple-gsub-tp4413481p4413481.html
Sent from the R help mailing list archive at Nabble.com.