Skip to content
Prev 367281 / 398506 Next

[FORGED] function for remove white space

On 22/02/17 12:51, Jos? Luis Aguilar wrote:
Something like

X <- as.data.frame(lapply(X,function(x){gsub(" ","",x)}))

Untested, since you provide no reproducible example (despite being told 
by the posting guide to do so).

I do not know what my idea will do to numeric columns or to factors.

However it should give you at least a start.

cheers,

Rolf Turner