You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bind_rows function seems to have difficulties handeling as.POSIXct(NA). It also returns the rather unhelpful message
POSIXct, POSIXt incompatible with data of type: POSIXct, POSIXt
Below are some simple examples.
# bind_rows does not work
bind_rows(data.frame(date = as.POSIXct(NA)),
data.frame(date = as.POSIXct("2015-05-05")))
## Error during wrapup: incompatible type (data index: 2, column: 'date', was collecting: POSIXct,
## POSIXt (dplyr::POSIXctCollecter<14>), incompatible with data of type: POSIXct, POSIXt
# same with rbind works
rbind(data.frame(date = as.POSIXct(NA)),
data.frame(date = as.POSIXct("2015-05-05")))
# funny that this works with logical NA
bind_rows(data.frame(date = NA),
data.frame(date = as.POSIXct("2015-05-05")))
# also it works the other way around
bind_rows(data.frame(date = as.POSIXct("2015-05-05")),
data.frame(date = as.POSIXct(NA)))
The text was updated successfully, but these errors were encountered:
The
bind_rows
function seems to have difficulties handelingas.POSIXct(NA)
. It also returns the rather unhelpful messageBelow are some simple examples.
The text was updated successfully, but these errors were encountered: