strip_attributes: Strip all attributes from a variable

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Strips all the attributes from a variable.

Usage

1

Arguments

x

Input to strip.

Value

x, without attributes.

Examples

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

assertive.base documentation built on Feb. 8, 2021, 9:06 a.m.