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 0L:100L

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 > > >

Re: [R] The L Word

2011-02-24 Thread Martin Maechler
> "MM" == Martin Maechler > on Thu, 24 Feb 2011 18:34:36 +0100 writes: > "HW" == Hadley Wickham > 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

Re: [R] The L Word

2011-02-24 Thread Martin Maechler
> "HW" == Hadley Wickham > 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 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 b

Re: [R] The L Word

2011-02-24 Thread Martin Maechler
> "CB" == Claudia Beleites > 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 - >>> W

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 me

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 pr

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 unnecessa

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 Details:--

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 li

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 wrote: > I've been wondering what L means in the R computing context, and was > wondering if someone could

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 wrote: > I've been wondering what L means in the R computing context, and was > wondering if someone could point me to a reference

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 for

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 itse

[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 p