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
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
2 matches
Mail list logo