Note that from_narrow_array()
dispatches on ptype
Usage
from_narrow_array(x, ptype = narrow_default_ptype(x$schema), ...)
# S3 method for default
from_narrow_array(x, ptype = narrow_default_ptype(x$schema), ...)
# S3 method for `NULL`
from_narrow_array(x, ptype = narrow_default_ptype(x$schema), ...)
# S3 method for logical
from_narrow_array(x, ptype = narrow_default_ptype(x$schema), ...)
# S3 method for integer
from_narrow_array(x, ptype = narrow_default_ptype(x$schema), ...)
# S3 method for double
from_narrow_array(x, ptype = narrow_default_ptype(x$schema), ...)
# S3 method for raw
from_narrow_array(x, ptype = narrow_default_ptype(x$schema), ...)
# S3 method for character
from_narrow_array(x, ptype = narrow_default_ptype(x$schema), ...)
# S3 method for factor
from_narrow_array(x, ptype = narrow_default_ptype(x$schema), ...)
# S3 method for data.frame
from_narrow_array(x, ptype = narrow_default_ptype(x$schema), ...)
Examples
from_narrow_array(as_narrow_array(c(TRUE, FALSE, NA)), logical())
#> [1] TRUE FALSE NA