diff options
author | Narine Kokhlikyan <narine.kokhlikyan@gmail.com> | 2015-10-08 09:53:44 -0700 |
---|---|---|
committer | Shivaram Venkataraman <shivaram@cs.berkeley.edu> | 2015-10-08 09:53:44 -0700 |
commit | e8f90d9dda3f87fef01c683462eac67aad750f60 (patch) | |
tree | 2c2d8d5739ef8ea0fced3639c0dfc0c9e938faf0 /data/mllib/lr-data/random.data | |
parent | 56a9692fc06077e31b37c00957e8011235f4e4eb (diff) | |
download | spark-e8f90d9dda3f87fef01c683462eac67aad750f60.tar.gz spark-e8f90d9dda3f87fef01c683462eac67aad750f60.tar.bz2 spark-e8f90d9dda3f87fef01c683462eac67aad750f60.zip |
[SPARK-10836] [SPARKR] Added sort(x, decreasing, col, ... ) method to DataFrame
the sort function can be used as an alternative to arrange(... ).
As arguments it accepts x - dataframe, decreasing - TRUE/FALSE, a list of orderings for columns and the list of columns, represented as string names
for example:
sort(df, TRUE, "col1","col2","col3","col5") # for example, if we want to sort some of the columns in the same order
sort(df, decreasing=TRUE, "col1")
sort(df, decreasing=c(TRUE,FALSE), "col1","col2")
Author: Narine Kokhlikyan <narine.kokhlikyan@gmail.com>
Closes #8920 from NarineK/sparkrsort.
Diffstat (limited to 'data/mllib/lr-data/random.data')
0 files changed, 0 insertions, 0 deletions