english (version 1.1-1)

Ops.english: Arithmetic operations with objects of class english

Description

Allows arithmetic with objects of class english.

Usage

"Ops"(e1, e2)

Arguments

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

Value

A numeric vector 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.

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

Run this code
english(1:10)^2 + 1

Run the code above in your browser using DataCamp Workspace