[R] tab characters

Patrick Burns pburns at pburns.seanet.com
Fri Jan 30 11:13:05 CET 2009


'The R Inferno' pages 45-46.


Patrick Burns
patrick at burns-stat.com
+44 (0)20 8525 0696
http://www.burns-stat.com
(home of "The R Inferno" and "A Guide for the Unwilling S User")

Nick Matzke wrote:
> Hi all,
>
> Working at the R command line, how do I get strings to display e.g. 
> tab or newline characters as they should be displayed, rather than as 
> e.g. \n or \t?
>
> e.g.:
> > x="\t"
> > x="\t"
> > x
> [1] "\t"
> > print(x)
> [1] "\t"
>




More information about the R-help mailing list