removeone-list-method: Remove an element from an R object

Description Usage Arguments Value Author(s) Examples

Description

Remove an element from an R object Note: the R object is altered in place

Usage

1
2
## S4 method for signature 'list'
removeone(obj, x, warn = TRUE, error = TRUE)

Arguments

obj

an R object

x

an element

warn

logical, whether warn at error

error

logical, whether stop at error

Value

NULL and the R object is altered in place

Author(s)

Xiaobei Zhao

Examples

1
2
ll=list(1,2,3,a=4,b=5,6,7,c=8,9)
removeone(ll,3)

Xmisc documentation built on May 2, 2019, 8:23 a.m.