sortBy.GenericDataFileSet: Sorts the set

sortBy.GenericDataFileSetR Documentation

Sorts the set

Description

Sorts the set by one of several ordering schema.

Usage

## S3 method for class 'GenericDataFileSet'
sortBy(this, by=c("lexicographic", "mixedsort", "mixeddecimal", "mixedroman",
  "filesize"), decreasing=FALSE, caseSensitive=FALSE, ...)

Arguments

by

A character string specifying the ordering scheme.

decreasing

If TRUE the sorting is done in a decreasing manner.

caseSensitive

If TRUE, the ordering is case sensitive, otherwise not.

...

Not used.

Details

The set is ordering by the fullnames. If by="lexicographic", lexicographic ordering is used, sometimes also referred to as alphabetic ordering. If by="mixeddecimal", mixedsort ordering acknowledging decimal numbers is used, cf. mixedsort. If by="mixedroman", mixedsort ordering acknowledging roman numerals is used, cf. mixedsort.

Value

Returns returns itself with the set ordered accordingly.

Author(s)

Henrik Bengtsson

See Also

For more information see GenericDataFileSet.


HenrikBengtsson/R.filesets documentation built on Jan. 31, 2024, 8:11 a.m.