This is a partial type used to represent logical vectors that only contain NA. These require special handling because we want to allow NA to specify missingness without requiring a type.

unspecified(n = 0)

# S3 method for vctrs_unspecified
vec_ptype2(x, y, ...)

Arguments

n

Length of vector

Examples

#> Prototype: NULL
#> Prototype: logical
vec_c(NA, factor("x"))
#> [1] <NA> x #> Levels: x
#> [1] NA "2019-07-22"
#> [1] NA "2019-07-22 06:20:07 UTC"
vec_c(NA, list(1:3, 4:5))
#> [[1]] #> [1] NA #> #> [[2]] #> [1] 1 2 3 #> #> [[3]] #> [1] 4 5 #>