Learn R Programming

farsi (version 1.0)

Ops.farsi: Arithmetic operations with objects of class persian

Description

Allows arithmetic with objects of class farsi.

Usage

"Ops"(e1, e2)

Arguments

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

Value

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

References

See original note by Sadegh Rasoulinejad at

See Also

farsi, as.farsi.

Examples

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

Run the code above in your browser using DataLab