Re: [R] Where are usages like "== 2L" documented?

2009-11-17 Thread Duncan Murdoch
On 16/11/2009 7:52 PM, Gabor Grothendieck wrote: On Mon, Nov 16, 2009 at 7:25 PM, Duncan Murdoch wrote: On 16/11/2009 6:47 PM, Steven McKinney wrote: ?NumericConstants will bring up a help page that mentions "All other numeric constants start with a digit or period and are either a decimal or

Re: [R] Where are usages like "== 2L" documented?

2009-11-17 Thread Prof Brian Ripley
On Tue, 17 Nov 2009, Bryan Hanson wrote: Patrick reminded me that it's also in The R Inferno, another document that I need to read again. So now, a more particular semi-question: x <- 1L y <- 1 z <- 1.0 class(x) # integer class(y) # numeric class(z) # numeric NB: identical(x, y) is TRUE, so

Re: [R] Where are usages like "== 2L" documented?

2009-11-17 Thread Bryan Hanson
Patrick reminded me that it's also in The R Inferno, another document that I need to read again. So now, a more particular semi-question: x <- 1L y <- 1 z <- 1.0 class(x) # integer class(y) # numeric class(z) # numeric x == 1 x == 1L y == 1 z == 1 # all test TRUE Just to clarify, I think the s

Re: [R] Where are usages like "== 2L" documented?

2009-11-17 Thread Duncan Murdoch
9:09 PM, Steven McKinney wrote: -Original Message- From: Gabor Grothendieck [mailto:ggrothendi...@gmail.com] Sent: Monday, November 16, 2009 4:52 PM To: Duncan Murdoch Cc: Steven McKinney; R Help Subject: Re: [R] Where are usages like "== 2L" documented? On Mon, Nov 16, 2009 at 7:25

Re: [R] Where are usages like "== 2L" documented?

2009-11-16 Thread Steven McKinney
> -Original Message- > From: Gabor Grothendieck [mailto:ggrothendi...@gmail.com] > Sent: Monday, November 16, 2009 4:52 PM > To: Duncan Murdoch > Cc: Steven McKinney; R Help > Subject: Re: [R] Where are usages like "== 2L" documented? > > On Mon, Nov 1

Re: [R] Where are usages like "== 2L" documented?

2009-11-16 Thread Bryan Hanson
As the OP, I will say that I had deduced that it probably was a way of specifying type integer, so I went to the ?integer page hoping for further info. I agree there should be some kind of short comment or see also at that page. I've been a self-taught user of R for about a year and a half, and t

Re: [R] Where are usages like "== 2L" documented?

2009-11-16 Thread Gabor Grothendieck
On Mon, Nov 16, 2009 at 7:25 PM, Duncan Murdoch wrote: > On 16/11/2009 6:47 PM, Steven McKinney wrote: >> >> ?NumericConstants >> >> will bring up a help page that mentions >> "All other numeric constants start with a digit or period and are either a >> decimal or hexadecimal constant optionally f

Re: [R] Where are usages like "== 2L" documented?

2009-11-16 Thread Duncan Murdoch
rg [mailto:r-help-boun...@r- project.org] On Behalf Of Bryan Hanson Sent: Monday, November 16, 2009 3:23 PM To: R Help Subject: [R] Where are usages like "== 2L" documented? Gurus: I keep seeing other people¹s code that contain ideas like If (x == 2L) X[-1L] X - 1L I have some idea of

Re: [R] Where are usages like "== 2L" documented?

2009-11-16 Thread Steven McKinney
nyone know why not? Best Steve McKinney > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Bryan Hanson > Sent: Monday, November 16, 2009 3:23 PM > To: R Help > Subject: [R] Where are usages like "== 2L"

Re: [R] Where are usages like "== 2L" documented?

2009-11-16 Thread Duncan Murdoch
Bryan Hanson wrote: Gurus: I keep seeing other people¹s code that contain ideas like If (x == 2L) X[-1L] X - 1L I have some idea of what¹s going on, but where is the use of concepts like ³2L² documented? In the R Language Definition manual. In this case, look in section 3.1.1, "Constant

Re: [R] Where are usages like "== 2L" documented?

2009-11-16 Thread David Winsemius
On Nov 16, 2009, at 6:22 PM, Bryan Hanson wrote: Gurus: I keep seeing other people’s code that contain ideas like If (x == 2L) X[-1L] X - 1L I have some idea of what’s going on, but where is the use of concepts like “2L” documented? Not sure where exactly, and it would depend on where y

[R] Where are usages like "== 2L" documented?

2009-11-16 Thread Bryan Hanson
Gurus: I keep seeing other people¹s code that contain ideas like If (x == 2L) X[-1L] X - 1L I have some idea of what¹s going on, but where is the use of concepts like ³2L² documented? Thanks, Bryan * Bryan Hanson Acting Chair Professor of Chemistry & Biochemistry DePauw University,