sort.english: A sorting method for objects of class english

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

Description

A method for the generic function sort which allows numeric objects of class english to be sorted.

Usage

1
2
## S3 method for class 'english'
sort(x, decreasing = FALSE, ...)

Arguments

x

An object of class english.

decreasing

logical: should the object be sorted in decreasing order?

...

Not currently used.

Details

The method temporarily removes the english class, sorts the object components and reinstates the english class to the result.

Value

An object of class english with its components in numerically sorted order.

Author(s)

John Fox and Bill Venables

References

See original note by John Fox in the Programmers Niche section of https://cran.r-project.org/doc/Rnews/Rnews_2005-1.pdf.

See Also

english.

Examples

1
2
3
4


Search within the english package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.