[R] How not to print '\\' as '\\'
Jeff Newmiller
jdnewmil at dcn.davis.ca.us
Wed Jul 7 04:15:47 CEST 2010
?cat
"thmsfuller066 at gmail.com" <thmsfuller066 at gmail.com> wrote:
>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
>
>______________________________________________
>R-help at r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.
---------------------------------------------------------------------------
Jeff Newmiller The ..... ..... Go Live...
DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...1k
---------------------------------------------------------------------------
Sent from my phone. Please excuse my brevity.
More information about the R-help
mailing list