search for: reshape1

Displaying 1 result from an estimated 1 matches for "reshape1".

Did you mean: reshape
2012 Dec 13
1
duplicated.data.frame() and POSIXct with DST shift
...out if this behavior is desired or not. If so, a short warning in ?duplicated could be helpful. It is mentioned how duplicated.data.frame() works, but I didn't find a hint to properly handle POSIXct-objects. My particular problem was to cast a data.frame like this one with cast() (which calls reshape1(), which calls duplicated()): df2 <- data.frame(time, time1=as.numeric(time), lab=rep(1:3, each=2), value=101:106, text=rep(c("foo", "bar"), each=3)) library(reshape2) Using the column of class POSIXct as a variable in the formula gives...