Description Usage Arguments Value Examples
Add a ff vector that contains the order of the ff
vector x
as an attribute.
The order can be retrieved using ffordered
. Note that you have to assign the result to the
original vector x
.
1 2 3 4 5 | addfforder(x, addsorted = FALSE, ...)
ffordered(x)
ffsorted(x)
|
x |
|
addsorted |
should the sorted values also be stored in |
... |
parameters that will be passed on to |
The updated vector x
1 2 3 4 5 6 7 8 9 10 11 | x <- ff(rnorm(10))
# adds an index to x (note the assignment)
x <- addfforder(x)
# retrieve ffindex
o <- ffordered(x)
o
# use it to sort the original vector
x[o]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.