table() turns its argument into a factor, as it is documented to work on
factors, only, and
> factor(x$date)
[1] 1034809200 1034809200 1034809200 1034809200 944611200 944611200
Levels: 944611200 1034809200
That's because unique.default does not know about POSIXct objects (nor
indeed many othe
Hi,
I think that there is something that I am misunderstanding in creating tables
using dates that are of class POSIXct. Consider:
> x <- data.frame(date = as.POSIXct(strptime(c(rep("2002-10-17", 4), rep("1999-12-08",
> 2)), format = "%Y-%m-%d")))
> x
date
1 2002-10-17
2 2002-10-17
3 200