Learn R Programming

labelled (version 2.12.0)

remove_attributes: Remove attributes

Description

This function removes specified attributes. When applied to a data.frame, it will also remove recursively the specified attributes to each column of the data.frame.

Usage

remove_attributes(x, attributes)

Arguments

x

an object

attributes

a character vector indicating attributes to remove

Examples

Run this code
if (FALSE) {
library(haven)
path <- system.file("examples", "iris.sav", package = "haven")
d <- read_sav(path)
str(d)
d <- remove_attributes(d, "format.spss")
str(d)}

Run the code above in your browser using DataLab