addfforder: Add the order of a ff vector of the ff vector x
Description
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.
x <- ff(rnorm(10))
# adds an index to x (note the assignment)x <- addfforder(x)
# retrieve ffindexo <- ffordered(x)
o
# use it to sort the original vectorx[o]