The following cast errors but only for logical NA and only for tibbles (see example below). Maybe this is related to #205? Sorry, not familiar enough yet with vctrs, could not figure out why this fails.
vctrs::vec_rbind(
dplyr::tibble(x = 1),
dplyr::tibble(x = 2, y = NA)
)
# Error: Can't cast `y` <logical> to `y` <vctrs_unspecified>.
If using e.g. an integer NA it works as expected. Same for logical NA in a base R data frame:
vctrs::vec_rbind(
dplyr::tibble(x = 1),
dplyr::tibble(x = 2, y = NA_integer_)
)
## A tibble: 2 x 2
# x y
# <dbl> <int>
#1 1 NA
#2 2 NA
vctrs::vec_rbind(
data.frame(x = 1),
data.frame(x = 2, y = NA)
)
# x y
#1 1 NA
#2 2 NA
The following cast errors but only for logical NA and only for tibbles (see example below). Maybe this is related to #205? Sorry, not familiar enough yet with
vctrs, could not figure out why this fails.If using e.g. an integer NA it works as expected. Same for logical NA in a base R data frame: