| remove. | R Documentation |
Remove elements from a container by reference.
remove.(x, value)
x |
A CppForwardList or CppList object. |
value |
A value to delete from |
The method ends with a dot to avoid compatibility issues with the generic base::remove.
Invisibly returns NULL.
clear, empty, erase.
l <- cpp_forward_list(4:6)
l
# 4 5 6
remove.(l, 5L)
l
# 4 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.