[R] strange behaviour of "POSIXlt" "POSIXt" object

ikuzar razuki at hotmail.fr
Mon Mar 5 15:41:49 CET 2012


Hi, 
I'd like to know what "L" means in "1L" in the instruction below:
for(i in 1:20){ z$mday <- z$mday + 1L ; cat(is.na(z), ": ");print(z)} 

The result :
FALSE : [1] "2009-02-26 06:30:00"
FALSE : [1] "2009-02-27 06:30:00"
FALSE : [1] "2009-02-28 06:30:00"
FALSE : [1] "2009-03-01 06:30:00"
FALSE : [1] "2009-03-02 06:30:00"
FALSE : [1] "2009-03-03 06:30:00"
FALSE : [1] "2009-03-04 06:30:00"
FALSE : [1] "2009-03-05 06:30:00"
FALSE : [1] "2009-03-06 06:30:00"
FALSE : [1] "2009-03-07 06:30:00"
FALSE : [1] "2009-03-08 06:30:00"
FALSE : [1] "2009-03-09 06:30:00"
FALSE : [1] "2009-03-10 06:30:00"
FALSE : [1] "2009-03-11 06:30:00"
FALSE : [1] "2009-03-12 06:30:00"
FALSE : [1] "2009-03-13 06:30:00"
FALSE : [1] "2009-03-14 06:30:00"
FALSE : [1] "2009-03-15 06:30:00"
FALSE : [1] "2009-03-16 06:30:00"
FALSE : [1] "2009-03-17 06:30:00"

--
View this message in context: http://r.789695.n4.nabble.com/strange-behaviour-of-POSIXlt-POSIXt-object-tp4418115p4446305.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list