Skip to content
Prev 29920 / 63462 Next

typo in cov()? var() fails on NA in R 2.7.2 but not R 2.6.1

Andrew Piskorski wrote:

            
Not a typo! See R-2.5.0's NEWS:

NEW FEATURES

     o	Introduced the suffix L for integer literals to create
	integer rather than numeric values, e.g. 100L, 0x10L, 1e2L.

So,

 > class(3)
[1] "numeric"
 > class(3L)
[1] "integer"


HTH,
Henric