This function requires the bigdata library section to be loaded.
bd.sort(data, by.columns, ascending=T, na.last=F, alphabetic.factors=T)
bdFrame
or
data.frame
.
TRUE
, the
by.columns
elements are sorted in ascending order.
FALSE
, they are sorted in descending order.
by.columns
.
TRUE
, any
by.columns
elements that are missing values
are ordered after any non-missing values.
FALSE
, they are ordered before all of the non-missing values.
by.columns
.
TRUE
, factor values are sorted alphabetically
by the alphabetic order of the factor level strings.
FALSE
, factor values are sorted by the factor numbers.
bdFrame
or
data.frame
of the same type as
data
.
Contains the sorted rows from the input dataset.
## sort by Type name, and for each each value of this. ## sort by Mileage. bd.sort(fuel.frame, c("Type", "Mileage"))