sort | R Documentation |
Sorts the elements in a container by reference.
sort(x, decreasing, ...)
x |
A CppForwardList or CppList object. |
decreasing |
Ignored. |
... |
Ignored. |
decreasing
and ...
are only included for compatibility with the generic base::sort
method and have no effect.
Invisibly returns NULL
.
sorting, unique.
l <- cpp_forward_list(c(3, 2, 4))
l
# 3 2 4
sort(l)
l
# 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.