Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ff_arithmetic

Arithmetic Operators for ff vectors


Description

These binary operators perform arithmetic on numeric ff vectors. Arith family:

  • Arith: "+", "-", "*", "/", "^", "%%", "%/%"

The operators require either x or y to be an ff_vector or both. In case either x or y is not an ff_vector, the other object needs to be of length 1. Recycling is not implemented.

Usage

## S3 method for class 'ff_vector'
 x + y

## S3 method for class 'ff_vector'
 x - y

## S3 method for class 'ff_vector'
 x * y

## S3 method for class 'ff_vector'
 x / y

## S3 method for class 'ff_vector'
 x ^ y

## S3 method for class 'ff_vector'
 x %% y

## S3 method for class 'ff_vector'
 x %/% y

Arguments

x

either a numeric ff_vector or a vector of length 1 in RAM in which case y should be an ff_vector

y

either a numeric ff_vector or a vector of length 1 in RAM in which case x should be an ff_vector

Value

an ff_vector. For the definition of the operators see the base package of R.


ffbase

Basic Statistical Functions for Package 'ff'

v0.13.3
GPL-3
Authors
Edwin de Jonge, Jan Wijffels, Jan van der Laan
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.