Learn R Programming

discretes (version 0.1.0)

Ops.discretes: Arithmetic and power operators for numeric series

Description

Support for +, -, *, /, and ^ between a numeric series and a single number. One operand must be a numeric series and the other a number.

Usage

# S3 method for discretes
Ops(e1, e2)

Value

A numeric series resulting from the operation (e.g. series + number, number * series, series^number).

Arguments

e1, e2

Operands; one must be a numeric series (class discretes), the other a single numeric.

Examples

Run this code
integers() + 1
2 * natural1()
1 / integers(from = 1, to = 5)
natural0()^2

Run the code above in your browser using DataLab