powered by
Strips all the attributes from a variable.
strip_attributes(x)
Input to strip.
x, without attributes.
x
# NOT RUN { x <- structure(c(foo = 1, bar = 2), some_attr = 3) x2 <- strip_attributes(x) attributes(x) attributes(x2) # }
Run the code above in your browser using DataLab