[R] How not to print '\\' as '\\'

thmsfuller066 at gmail.com thmsfuller066 at gmail.com
Wed Jul 7 04:01:08 CEST 2010


Hello All,

'\\' is printed as '\\', but it is actually only one character.
Sometimes, I'd rather print it as a single '\'. Is there a function to
do so in R?

> nchar('\\')
[1] 1
> print('\\')
[1] "\\"

-- 
Tom



More information about the R-help mailing list