Learn R Programming

ospsuite.utils (version 1.2.0)

enumRemove: Remove an entry from the enum.

Description

Remove an entry from the enum.

Usage

enumRemove(keys, enum)

Arguments

keys

Key(s) of entries to be removed from the enum

enum

Enum from which the entries to be removed WARNING: the original object is not modified!

Value

Enum without the removed entries.

See Also

Other enumeration-helpers: enumGetKey(), enumGetValue(), enumHasKey(), enumKeys(), enumPut(), enumValues(), enum()

Examples

Run this code
# NOT RUN {
Symbol <- enum(c(Diamond = 1, Triangle = 2, Circle = 2))

# either by key
enumRemove("Diamond", Symbol)

# or by position
enumRemove(2L, Symbol)
# }

Run the code above in your browser using DataLab