sort-methods: Sort method for S4 objects of class klausuR

sortR Documentation

Sort method for S4 objects of class klausuR

Description

Returns the given object, with global results and anonymized results sorted by the given variable.

Usage

sort(x, decreasing = FALSE, ...)

## S4 method for signature 'klausuR'
sort(x, decreasing = FALSE, sort.by = c())

Arguments

x

An object of class klausuR

decreasing

Logical, whether sorting should be sone increasing or decreasing.

...

Additional arguments.

sort.by

An optional character string naming a variable to sort the results by. Defaults to c(), i.e. no re-ordering.

Author(s)

m.eik michalke meik.michalke@uni-duesseldorf.de

See Also

klausur

Examples

## Not run: 
klsr.obj <- klausur(data.obj)
sort(klsr.obj, sort.by="Points")

## End(Not run)

klausuR documentation built on April 5, 2022, 1:15 a.m.