Description Usage Arguments Details Value See Also Examples
Arrange the rows in an Xdf file
1 2 3 4 5 6 7 8 9 |
... |
List of unquoted variable names. Use |
.by_group |
If TRUE, will sort first by grouping variables. |
.outFile |
Output format for the returned data. If not supplied, create an xdf tbl; if |
.rxArgs |
A list of RevoScaleR arguments. See |
data |
An Xdf data source, tbl, or other RevoScaleR file data source. |
The underlying RevoScaleR function is rxSort
. This has many sorting options, including removing duplicated keys, adding a column of frequency counts, and so on.
Due to limitations in rxSort
, this verb does not support data stored in HDFS.
An object representing the sorted data. This depends on the .outFile
argument: by default, it will be an xdf tbl object; if NULL
, a data frame; and if a filename, an Xdf data source referencing a file saved to that location.
rxSort
, arrange
in package dplyr
1 2 3 4 5 6 7 8 | mtx <- as_xdf(mtcars, overwrite=TRUE)
tbl <- arrange(mtx, cyl, disp)
as.data.frame(tbl)
tbl2 <- arrange(mtx, desc(disp))
as.data.frame(tbl2)
# Saving to a persistent Xdf file
arrange(mtx, cyl, disp, .outFile="mtcars_sorted.xdf")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.