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

Duncan Murdoch murdoch at stats.uwo.ca
Tue Nov 17 01:25:54 CET 2009


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 followed by L."
> 
> and
> 
> "An numeric constant immediately followed by L is regarded as an integer number when possible (and with a warning if it contains a "."). "
> 
> but I haven't found discussion of it anywhere else in the help pages.
> Others may know what other help pages discuss this.
> 
> I'm surprised that the help page invoked from
> ?integer
> does not discuss this.  Anyone know why not?

This is part of the syntax of the language.  It has nothing to do with 
the integer() function, which is what ?integer is asking about.

Duncan Murdoch

> 
> Best
> Steve McKinney
> 
> 
> 
> 
>> -----Original Message-----
>> From: r-help-bounces at r-project.org [mailto:r-help-bounces at 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 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, Greencastle IN USA
>>
>> ______________________________________________
>> R-help at 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 at 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.




More information about the R-help mailing list