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
Where are usages like "== 2L" documented?
3 messages · Bryan Hanson, David Winsemius, Duncan Murdoch
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 you learned R. The integer data type information and notation should have been found among the material where you learned about "numeric", "character", "logical", .... that sort of basic notion.
David Winsemius, MD Heritage Laboratories West Hartford, CT
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, "Constants". Duncan Murdoch
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.