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

Duncan Murdoch murdoch at stats.uwo.ca
Wed Nov 18 04:07:56 CET 2009


On 16/11/2009 7:52 PM, Gabor Grothendieck wrote:
> On Mon, Nov 16, 2009 at 7:25 PM, Duncan Murdoch <murdoch at stats.uwo.ca> 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 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.
> 
> It might be useful to have a SeeAlso to NumericConstants on that help
> page for those who looked up ?integer thinking it might be about
> integer constants.

I've added "1L", "1i" and "0x1" as aliases for NumericConstants instead.

Duncan Murdoch




More information about the R-help mailing list