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

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

View source: R/english.R

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

english documentation built on May 30, 2017, 2:53 a.m.