| dsSort | R Documentation |
Sort the rows of a data frame lexicographically. This allows to compare two data sets as sets of cases disregarding their order.
dsSort(dat)
dat |
a dataframe. |
The function calls order() with the columns of dat as the
sorting criteria.
Data frame, whose rows are reordered by the sorting.
Petr Savicky
readMLData.
pathData <- getPath("exampleData")
pathDescription <- getPath("exampleDescription")
dsList <- prepareDSList(pathData, pathDescription)
dat <- dsRead(dsList, "glass")
sorted <- dsSort(dat)