Displaying 1 result from an estimated 1 matches for "tp3670414p3670454".
2011 Jul 15
2
Odd behaviour of as.POSIXct
Dear all,
how come the first loop in the below fails, but the second performs as
expected?
days <- as.Date( c("2000-01-01", "2000-01-02") )
for(day in days)
{
as.POSIXct(day)
}
for( n in 1:length(days) )
{
show(as.POSIXct(days[n]))
}
Many thanks, Jo
[[alternative HTML version deleted]]