View source: R/remove_attributes.R
remove_attributes | R Documentation |
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.
remove_attributes(x, attributes)
x |
an object |
attributes |
a character vector indicating attributes to remove |
## Not run:
library(haven)
path <- system.file("examples", "iris.sav", package = "haven")
d <- read_sav(path)
str(d)
d <- remove_attributes(d, "format.spss")
str(d)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.