delete | R Documentation |
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 class 'Container'
delete(.x, ...)
## S3 method for class 'Container'
ref_delete(.x, ...)
.x |
any |
... |
elements to be deleted. |
For Container
, an object of class Container
(or one of the
respective derived classes).
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
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.