powered by
Search and remove elements from an object. If the element is not found, an error is signaled.
delete(.x, ...)ref_delete(.x, ...)# S3 method for Container delete(.x, ...)# S3 method for Container ref_delete(.x, ...)
ref_delete(.x, ...)
# S3 method for Container delete(.x, ...)
# S3 method for Container ref_delete(.x, ...)
For Container, an object of class Container (or one of the respective derived classes).
Container
any R object.
R
elements to be deleted.
s = setnew("a", 1:3, iris) print(s) delete(s, 1:3, "a") delete(s, iris) try({ delete(s, "b") # "b" is not in Set })
Run the code above in your browser using DataLab