Re: [R] The L Word

2011-02-24 Thread Tal Galili
Thank you all for the answers. So if I may extend on the question - When is it important to use 'Literal integer'? Under what situations could not using it cause problems? Is it a matter of efficiency or precision or both? Thanks, Tal Contact

Re: [R] The L Word

2011-02-24 Thread Prof Brian Ripley
On Thu, 24 Feb 2011, Tal Galili wrote: Thank you all for the answers. So if I may extend on the question - When is it important to use 'Literal integer'? Under what situations could not using it cause problems? Is it a matter of efficiency or precision or both? Efficiency: it avoids

Re: [R] The L Word

2011-02-24 Thread Claudia Beleites
On 02/24/2011 11:20 AM, Prof Brian Ripley wrote: On Thu, 24 Feb 2011, Tal Galili wrote: Thank you all for the answers. So if I may extend on the question - When is it important to use 'Literal integer'? Under what situations could not using it cause problems? Is it a matter of efficiency or

Re: [R] The L Word

2011-02-24 Thread Bryan Hanson
This came up at least once before, with regard to where it is documented: http://r.789695.n4.nabble.com/Where-are-usages-like-quot-2L-quot-documented-tt831061.html I haven't looked around much to see if the documentation has changed, but in a quick look at ?integer I don't see the concept

Re: [R] The L Word

2011-02-24 Thread Martin Maechler
CB == Claudia Beleites cbelei...@units.it on Thu, 24 Feb 2011 12:31:55 +0100 writes: CB On 02/24/2011 11:20 AM, Prof Brian Ripley wrote: On Thu, 24 Feb 2011, Tal Galili wrote: Thank you all for the answers. So if I may extend on the question - When is it

Re: [R] The L Word

2011-02-24 Thread Hadley Wickham
Note however that I've never seen evidence for a *practical* difference in simple cases, and also of such cases as part of a larger computation. But I'm happy to see one if anyone has an interesting example. E.g., I would typically never use  0L:100L  instead of 0:100 in an R script because

Re: [R] The L Word

2011-02-24 Thread Martin Maechler
HW == Hadley Wickham had...@rice.edu on Thu, 24 Feb 2011 10:14:35 -0600 writes: Note however that I've never seen evidence for a *practical* difference in simple cases, and also of such cases as part of a larger computation. But I'm happy to see one if anyone has an

Re: [R] The L Word

2011-02-24 Thread Martin Maechler
MM == Martin Maechler maech...@stat.math.ethz.ch on Thu, 24 Feb 2011 18:34:36 +0100 writes: HW == Hadley Wickham had...@rice.edu on Thu, 24 Feb 2011 10:14:35 -0600 writes: Note however that I've never seen evidence for a *practical* difference in simple cases, and also of

Re: [R] The L Word

2011-02-24 Thread William Dunlap
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Martin Maechler Sent: Thursday, February 24, 2011 7:45 AM To: Claudia Beleites Cc: r-help@r-project.org Subject: Re: [R] The L Word CB == Claudia Beleites cbelei

Re: [R] The L Word

2011-02-24 Thread Claudia Beleites
On 02/24/2011 05:14 PM, Hadley Wickham wrote: Note however that I've never seen evidence for a *practical* difference in simple cases, and also of such cases as part of a larger computation. But I'm happy to see one if anyone has an interesting example. E.g., I would typically never use

[R] The L Word

2011-02-23 Thread Gene Leynes
I've been wondering what L means in the R computing context, and was wondering if someone could point me to a reference where I could read about it, or tell me what it's called so that I can search for it myself. (L by itself is a little too general for a search term). I encounter it in strange

Re: [R] The L Word

2011-02-23 Thread Erik Iverson
Gene, it's described in ?NumericConstants HTH, Erik Gene Leynes wrote: I've been wondering what L means in the R computing context, and was wondering if someone could point me to a reference where I could read about it, or tell me what it's called so that I can search for it myself. (L by

Re: [R] The L Word

2011-02-23 Thread Claudia Beleites
On 02/23/2011 05:08 PM, Gene Leynes wrote: I've been wondering what L means in the R computing context, and was wondering if someone could point me to a reference where I could read about it, or tell me what it's called so that I can search for it myself. (L by itself is a little too general

Re: [R] The L Word

2011-02-23 Thread Tsjerk Wassenaar
Hi Gene, It means 'Literal integer'. So 1L is a proper integer 1, and 0L is a proper integer 0. Hope it helps, Tsjerk On Wed, Feb 23, 2011 at 5:08 PM, Gene Leynes gleyne...@gmail.com wrote: I've been wondering what L means in the R computing context, and was wondering if someone could point

Re: [R] The L Word

2011-02-23 Thread jim holtman
The notation '1L' mean to interprete the data as an 'integer'. str(1) num 1 str(1L) int 1 str(0xaa) num 170 str(0xaaL) int 170 On Wed, Feb 23, 2011 at 11:08 AM, Gene Leynes gleyne...@gmail.com wrote: I've been wondering what L means in the R computing context, and was wondering if

Re: [R] The L Word

2011-02-23 Thread Gene Leynes
Thank you everyone, that makes a lot more sense now. It's not at all what I would have guessed! (I thought that it might have to do with scope) It's one of those little things would add just enough confusion that I would sort of tune out whenever I saw it. So, I really appreciate having this