unspecified

0th

Percentile

A 1d vector of unspecified type

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.

Keywords
internal
Usage
unspecified(n = 0)

vec_unspecified_cast(x, to)

# S3 method for vctrs_unspecified vec_type2(x, y)

Arguments
n

Length of vector

Details

vec_unspecified_cast() is a helper to use in your vec_cast() methods. See vignette("s3-vector") for detail.

Aliases
  • unspecified
  • vec_unspecified_cast
  • vec_type2.vctrs_unspecified
Examples
# NOT RUN {
vec_ptype()
vec_ptype(NA)

vec_c(NA, factor("x"))
vec_c(NA, Sys.Date())
vec_c(NA, Sys.time())
vec_c(NA, list(1:3, 4:5))
# }
Documentation reproduced from package vctrs, version 0.1.0, License: GPL-3

Community examples

Looks like there are no examples yet.