vec_unchop {vctrs} | R Documentation |
Chopping
Description
vec_unchop()
has been renamed to list_unchop()
and is deprecated as of
vctrs 0.5.0.
Usage
vec_unchop(
x,
indices = NULL,
ptype = NULL,
name_spec = NULL,
name_repair = c("minimal", "unique", "check_unique", "universal")
)
Arguments
x |
A vector |
indices |
For For |
ptype |
If |
name_spec |
A name specification for combining
inner and outer names. This is relevant for inputs passed with a
name, when these inputs are themselves named, like
See the name specification topic. |
name_repair |
How to repair names, see |
Value
-
vec_chop()
: A list where each element has the same type asx
. The size of the list is equal tovec_size(indices)
,vec_size(sizes)
, orvec_size(x)
depending on whether or notindices
orsizes
is provided. -
list_unchop()
: A vector of typevec_ptype_common(!!!x)
, orptype
, if specified. The size is computed asvec_size_common(!!!indices)
unless the indices areNULL
, in which case the size isvec_size_common(!!!x)
.