Re: [R] tab characters
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 it reliable resource for learning about R? What is the authority of Patrick Burns? I would like to avoid spending much time on learning from 'The R Inferno' to only later discover that it was wrong. Mvh. Marie On Fri, Jan 30, 2009 at 11:13 AM, Patrick Burns pbu...@pburns.seanet.comwrote: '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 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 __ R-help@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. [[alternative HTML version deleted]] __ R-help@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.
Re: [R] tab characters
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 been reviewed by anyone I have a question: is it reliable resource for learning about R? What is the authority of Patrick Burns? I would like to avoid spending much time on learning from 'The R Inferno' to only later discover that it was wrong. That's the first error I've seen in it. In my opinion, it's a very useful reference. Duncan Murdoch Mvh. Marie On Fri, Jan 30, 2009 at 11:13 AM, Patrick Burns pbu...@pburns.seanet.comwrote: '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 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 __ R-help@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. [[alternative HTML version deleted]] __ R-help@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. __ R-help@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.
Re: [R] tab characters
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 anyone I have a question: is it reliable resource for learning about R? What is the authority of Patrick Burns? I would like to avoid spending much time on learning from 'The R Inferno' to only later discover that it was wrong. In short: Don't worry too much. Pat is an experienced S and R user. In fact, he's been around since R was little but a gleam in its fathers' eyes. He has a record of writing stuff and publishing on the web, in a style somewhat different from what the publishing companies seem to want. The R Inferno is his latest addition, so he's liable to make a few Hey, I wrote about that kind of posts. A quick look suggest that this should be quite an amusing read, but it isn't a textbook for beginners learning R. Rather, it is assumed that you already know the basics, and now need to read about the pitfalls. There could be inaccuracies (the for loop description is indeed mildly off-base), but the intended audience can reasonably be assumed to possess a critical mind. And the nice thing about web publications is that mistakes can be fixed quickly. -pd -- O__ Peter Dalgaard Ă˜ster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - (p.dalga...@biostat.ku.dk) FAX: (+45) 35327907 __ R-help@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.
Re: [R] tab characters
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 p.dalga...@biostat.ku.dkwrote: 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 anyone I have a question: is it reliable resource for learning about R? What is the authority of Patrick Burns? I would like to avoid spending much time on learning from 'The R Inferno' to only later discover that it was wrong. In short: Don't worry too much. Pat is an experienced S and R user. In fact, he's been around since R was little but a gleam in its fathers' eyes. He has a record of writing stuff and publishing on the web, in a style somewhat different from what the publishing companies seem to want. The R Inferno is his latest addition, so he's liable to make a few Hey, I wrote about that kind of posts. A quick look suggest that this should be quite an amusing read, but it isn't a textbook for beginners learning R. Rather, it is assumed that you already know the basics, and now need to read about the pitfalls. There could be inaccuracies (the for loop description is indeed mildly off-base), but the intended audience can reasonably be assumed to possess a critical mind. And the nice thing about web publications is that mistakes can be fixed quickly. -pd [[alternative HTML version deleted]] __ R-help@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.
Re: [R] tab characters
?cat x - '\t' print(x) [1] \t cat(x) On Thu, Jan 29, 2009 at 3:13 PM, Nick Matzke mat...@berkeley.edu 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 -- Nicholas J. Matzke Ph.D. student, Graduate Student Researcher Huelsenbeck Lab Center for Theoretical Evolutionary Genomics 4151 VLSB (Valley Life Sciences Building) Department of Integrative Biology University of California, Berkeley Lab websites: http://ib.berkeley.edu/people/lab_detail.php?lab=54 http://fisher.berkeley.edu/cteg/hlab.html Dept. personal page: http://ib.berkeley.edu/people/students/person_detail.php?person=370 Lab personal page: http://fisher.berkeley.edu/cteg/members/matzke.html Lab phone: 510-643-6299 Dept. fax: 510-643-6264 Cell phone: 510-301-0179 Email: mat...@berkeley.edu Mailing address: Department of Integrative Biology 3060 VLSB #3140 Berkeley, CA 94720-3140 - [W]hen people thought the earth was flat, they were wrong. When people thought the earth was spherical, they were wrong. But if you think that thinking the earth is spherical is just as wrong as thinking the earth is flat, then your view is wronger than both of them put together. Isaac Asimov (1989). The Relativity of Wrong. The Skeptical Inquirer, 14(1), 35-44. Fall 1989. http://chem.tufts.edu/AnswersInScience/RelativityofWrong.htm __ R-help@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. -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve? __ R-help@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.