Ops.farsi: Arithmetic operations with objects of class persian

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

View source: R/farsi.R

Description

Allows arithmetic with objects of class farsi.

Usage

1
2
## S3 method for class 'farsi'
Ops(e1, e2)

Arguments

e1, e2

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

Details

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

Value

A numeric vector of class farsi.

Author(s)

Bill Venables

References

See original note by Sadegh Rasoulinejad at

See Also

farsi, as.farsi.

Examples

1
farsi(1:10)^2 + 1

farsi documentation built on May 30, 2017, 7:09 a.m.