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
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
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
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
> -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
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
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
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
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"
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
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
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,
12 matches
Mail list logo