Where are usages like "== 2L" documented?
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 this is one of the better hidden pieces of information. I had looked at
the R Lang document, and probably should again for some additional ideas,
but that was a long time ago. I did an RSiteSearch("1L") but not
surprisingly this returns many uses of the feature, not the definition, at
least not in the first few pages.
Thanks for the tips. Bryan
*************
Bryan Hanson
Acting Chair
Professor of Chemistry & Biochemistry
DePauw University, Greencastle IN USA
On 11/16/09 7:52 PM, "Gabor Grothendieck" <ggrothendieck at gmail.com> 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.
______________________________________________ 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.