Remove all label attributes.
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).
remove_labels()
This can be useful with functions reacting badly to labelled objects.
remove_labels(x)
x
An object of the same type as x, with no labels
mtcars2 %>% remove_labels %>% crosstable(mpg) #no label mtcars2$hp %>% remove_labels %>% get_label() #NULL
get_label , set_label , import_labels , expss::unlab
Dan Chaltiel
Useful links