| push_back | R Documentation |
Add an element to the back of a container by reference.
push_back(x, value)
x |
A CppVector, CppDeque, or CppList object. |
value |
A value to add to |
Invisibly returns NULL.
back, emplace_back, insert, pop_back, push_front.
v <- cpp_vector(4:6)
v
# 4 5 6
push_back(v, 14L)
v
# 4 5 6 14
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.