Learn R Programming

assertive.base (version 0.0-9)

strip_attributes: Strip all attributes from a variable

Description

Strips all the attributes from a variable.

Usage

strip_attributes(x)

Arguments

x

Input to strip.

Value

x, without attributes.

Examples

Run this code
# 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