Is there any way to preserve spaces in a data.frame's column names when calling transform()? Currently they get munged:
> transform(data.frame('a b'=1, check.names=F), `c d`=`a b`)
a.b c.d
1 1 1
Just feed check.names=F into transform:
> transform(data.frame('a b'=1, check.names=F), `c d`=`a b`,check.names=F)
a b c d
1 1 1
However, I don't see this mentioned in the documentation for ?transform!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With