Learn R Programming

klausuR (version 0.12-14)

sort: 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 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.

See Also

klausur

Examples

Run this code
# NOT RUN {
klsr.obj <- klausur(data.obj)
sort(klsr.obj, sort.by="Points")
# }

Run the code above in your browser using DataLab