Skip to contents

Remove attributes from an object

Usage

strip_attributes(x, specific = NULL, ...)

# S3 method for data.frame
strip_attributes(x, specific = NULL, columns_only = TRUE, ...)

# S3 method for default
strip_attributes(x, specific = NULL, ...)

Arguments

x

The object to remove attributes from

specific

If NULL, all attributes are removed. If a character vector, only the named attributes are removed.

...

Passed to other `strip_attributes()` methods.

columns_only

Do not strip attributes from the data.frame; only strip them from the columns of the data.frame.

Value

x with fewer attributes.