strip: strip

View source: R/enums.R

stripR Documentation

strip

Description

Strip an object from all it's attributes.

Usage

strip(obj)

## Default S3 method:
strip(obj)

Arguments

obj

any object

Value

'strip()' removes all names, class, comments and any other attributes and returns the result.

Methods (by class)

  • strip(default): Strip any object from all it's attributes.

Examples

strip(enum(a = 1, b = 2)) # 1:2
strip(c(a = 1, b = 2))    # 1:2

SigurdJanson/plainEnum documentation built on Aug. 27, 2022, 1:40 a.m.