dsSort {readMLData} | R Documentation |
Sort the rows of a data frame.
Description
Sort the rows of a data frame lexicographically. This allows to compare two data sets as sets of cases disregarding their order.
Usage
dsSort(dat)
Arguments
dat |
a dataframe. |
Details
The function calls order()
with the columns of dat
as the
sorting criteria.
Value
Data frame, whose rows are reordered by the sorting.
Author(s)
Petr Savicky
See Also
Examples
pathData <- getPath("exampleData")
pathDescription <- getPath("exampleDescription")
dsList <- prepareDSList(pathData, pathDescription)
dat <- dsRead(dsList, "glass")
sorted <- dsSort(dat)
[Package readMLData version 0.9-7 Index]