Ops.english {english}R Documentation

Arithmetic operations with objects of class english

Description

Allows arithmetic with objects of class english.

Usage

## S3 method for class 'english'
Ops(e1, e2)

Arguments

e1, e2

Numeric vectors, of which at least one must be of class english.

Details

A standard group generic function that strips off the english class from its arguments, invokes the next arithmetic operation method and reinstates the class english on the result.

Value

A numeric vector of class english.

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, as.english.

Examples

english(1:10)^2 + 1

[Package english version 1.1-4 Index]