Re: [R] tab characters

2009-01-30 Thread Marie Sivertsen
Thank you both Peter and Duncan for explanations. 'The R Inferno' is indeed not so much introduction but I find it useful to know about how I can go wrong in simple things before I do. Mvh. Marie On Fri, Jan 30, 2009 at 3:03 PM, Peter Dalgaard wrote: > Marie Sivertsen wrote: > > I see 'The R In

Re: [R] tab characters

2009-01-30 Thread Peter Dalgaard
Marie Sivertsen wrote: > I see 'The R Inferno' being refered quiet often recently. But it was now > pointed by Duncan Murdoch that for example the statement concerning > variables in a for loop is not correct in there (page 62). As I can not > find any information about the book been reviewed by

Re: [R] tab characters

2009-01-30 Thread Duncan Murdoch
On 1/30/2009 7:19 AM, Marie Sivertsen wrote: I see 'The R Inferno' being refered quiet often recently. But it was now pointed by Duncan Murdoch that for example the statement concerning variables in a for loop is not correct in there (page 62). As I can not find any information about the book b

Re: [R] tab characters

2009-01-30 Thread Marie Sivertsen
I see 'The R Inferno' being refered quiet often recently. But it was now pointed by Duncan Murdoch that for example the statement concerning variables in a for loop is not correct in there (page 62). As I can not find any information about the book been reviewed by anyone I have a question: is i

Re: [R] tab characters

2009-01-30 Thread Patrick Burns
'The R Inferno' pages 45-46. Patrick Burns patr...@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 chara

Re: [R] tab characters

2009-01-29 Thread jim holtman
?cat > x <- '\t' > print(x) [1] "\t" > cat(x) > On Thu, Jan 29, 2009 at 3:13 PM, 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="

[R] tab characters

2009-01-29 Thread Nick Matzke
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" -- Nicholas J. Matzke