Learn R Programming

zmisc (version 0.2.3)

threadbare: Return a threadbare version of a vector

Description

A bare object is an R object that has no class attributes (see rlang::is_bare_character()). A threadbare object is an atomic object (i.e. not a list(), see is.atomic()), with no attributes at all. The function returns an error if a list is passed.

Usage

threadbare(x)

Value

A vector with the same core values as x, but with no attributes()

at all, not even names().

Arguments

x

A vector, possibly classed, but not a list object, to strip of all attributes.

See Also

Other labelled light: ll_assert_labelled(), ll_labelled(), ll_to_character(), ll_val_labels(), ll_var_label()