strip_attributes {assertive.base}R Documentation

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

x <- structure(c(foo = 1, bar = 2), some_attr = 3)
x2 <- strip_attributes(x)
attributes(x)
attributes(x2)

[Package assertive.base version 0.0-9 Index]