remove_labels: Remove all label attributes.

View source: R/labels.R

remove_labelsR Documentation

Remove all label attributes.

Description

Use remove_labels() to remove the label from an object or to recursively remove all the labels from a collection of objects (such as a list or a data.frame).

This can be useful with functions reacting badly to labelled objects.

Usage

remove_labels(x)

Arguments

x

object to unlabel

Value

An object of the same type as x, with no labels

Author(s)

Dan Chaltiel

See Also

get_label, set_label, import_labels, expss::unlab

Examples

mtcars2 %>% remove_labels %>% crosstable(mpg) #no label
mtcars2$hp %>% remove_labels %>% get_label() #NULL

crosstable documentation built on Nov. 13, 2023, 1:08 a.m.