[R] Removing Special Characters

arun smartpink111 at yahoo.com
Mon Mar 24 14:58:53 CET 2014


Hi,
Try:
DF <- data.frame(Column1= c("{AA}","{BB}"))
DF$Column1 <- with(DF,gsub("[{}]","",Column1))
 DF$Column1
#[1] "AA" "BB"
A.K.


Hi All, 

I have a scenario, Like I have my output tabel X to be like 

Table name : X 
Column name :  column 1 

output 
Column1 
{AA} 
{BB} 

I want to remove the braces and display my output as below 

Column1 
AA 
BB 

Can anyone help me in this...? 

Regards, 
Praveen 
Thanks and Regards, 
Praveen



More information about the R-help mailing list