strip_attributes {assertive.base} | R Documentation |
Strips all the attributes from a variable.
strip_attributes(x)
x |
Input to strip. |
x
, without attributes.
x <- structure(c(foo = 1, bar = 2), some_attr = 3) x2 <- strip_attributes(x) attributes(x) attributes(x2)