dsSort: Sort the rows of a data frame.

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/utils.R

Description

Sort the rows of a data frame lexicographically. This allows to compare two data sets as sets of cases disregarding their order.

Usage

1
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

readMLData.

Examples

1
2
3
4
5
  pathData <- getPath("exampleData")
  pathDescription <- getPath("exampleDescription")
  dsList <- prepareDSList(pathData, pathDescription)
  dat <- dsRead(dsList, "glass")
  sorted <- dsSort(dat)

readMLData documentation built on May 29, 2017, 9:28 p.m.