SerieArithmetic: Serie Arithmetic Operators

Description Usage Arguments Value See Also Examples

Description

Arithmetic operators for the Serie class.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## S3 method for class 'Serie'
s1 + s2
## S3 method for class 'Serie'
s1 - s2
## S3 method for class 'Serie'
s1 * s2
## S3 method for class 'Serie'
s1 / s2
## S3 method for class 'Serie'
s ^ n

Arguments

s1, s2, s

Serie objects

n

a positive integer number

Value

Returns the Serie object resulting of the arithmetical operation.

See Also

See the class Serie.

Examples

1
2
3
4
5
6
7
s1 <- Serie(rnorm(12), Monthly, Date(2015))
s2 <- Serie(rnorm(12), Monthly, Date(2015))
ss <- s1+s2
sd <- s1-s2
sp <- s1*s2
sq <- s1/s2
se <- s1^2

tolBasis documentation built on May 2, 2019, 3:44 a.m.