how to remove all attributes from a variables in r code example Example: how to remove all attributes from a variables in r attributes(x) <- NULL