how to remove all attributes from a variables in r
# Create a variable with attributes
variable <- structure(1:5, my_attr = "some_attribute")
# Remove all attributes from the variable
attributes(variable) <- NULL
# Create a variable with attributes
variable <- structure(1:5, my_attr = "some_attribute")
# Remove all attributes from the variable
attributes(variable) <- NULL