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.

______________________________________________
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.

Reply via email to