
sort
in Package scidb"sort"(x, decreasing = FALSE, ...)
"sort"(x, decreasing = FALSE, ...)
scidb
or scidbdf
object.scidb
or scidbdf
reference object.x
. The output array reference has the same shape and number of
attributes as x
but the specified attributes appear in sorted order.
The following SciDB-specific parameters are available:
x
to sort on
## Not run:
# # Create a copy of the iris data frame in a 1-d SciDB array named "iris."
# # Note that SciDB attribute names will be changed to conform to SciDB
# # naming convention.
# x <- as.scidb(iris,name="iris")
#
# # Sort x by Petal_Width and Petal_Length:
# a <- sort(x, attributes=c("Petal_Width","Petal_Length"))
# ## End(Not run)
Run the code above in your browser using DataLab