Re: [R] Difference between 10 and 10L

2012-05-04 Thread Petr Savicky
On Thu, May 03, 2012 at 07:32:46PM -0400, brwin338 wrote: > > Good Evening > We have been searching through the R documentation manuals without success on > this one. > What is the purpose or result of the "L" in the following? > > n=10 > and > n=10L > > or > c(5,10) > versus > c(5L,10L) Hi.

Re: [R] Difference between 10 and 10L

2012-05-03 Thread Prof Brian Ripley
On 04/05/2012 00:43, William Dunlap wrote: > class(10) [1] "numeric" > class(10L) [1] "integer" > class(10i) [1] "complex" Why not 10I for integer? Perhaps because "I" and "l" look too similar, perhaps because "i" and "I" sound too similar. The "L" does not mean "long": in

Re: [R] Difference between 10 and 10L

2012-05-03 Thread William Dunlap
> class(10) [1] "numeric" > class(10L) [1] "integer" > class(10i) [1] "complex" Why not 10I for integer? Perhaps because "I" and "l" look too similar, perhaps because "i" and "I" sound too similar. The "L" does not mean "long": integers are 4 bytes long. Bill Dunlap Spotfire, TIBCO