Re: [R] Remove space from string

2012-01-13 Thread Gustaf Rydevik
gsub(" ","",a) /Gustaf On Fri, Jan 13, 2012 at 12:24 PM, Vikram Bahure wrote: > Dear R users, > > I have some trivial query. > > I have a string, I want to remove space from the string. > > For eg. > > Input: > a <- " Remove space " > > Output required: > "Removespace" > > I tried using str_trim

[R] Remove space from string

2012-01-13 Thread Vikram Bahure
Dear R users, I have some trivial query. I have a string, I want to remove space from the string. For eg. Input: a <- " Remove space " Output required: "Removespace" I tried using str_trim but only removes end spaces. library(stringr). Regards Vikram [[alternative HTML version delet