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

ffseq

Sequence Generation of ff vectors.


Description

Similar as seq in the base package, generating an ff vector.

Usage

ffseq(
  from = 1,
  to = 1,
  by = ((to - from)/(length.out - 1)),
  length.out = NULL,
  along.with = NULL,
  ...
)

Arguments

from

the starting value of the sequence

to

the end (maximal) value of the sequence

by

number, increment of the sequence

length.out

desired length of the sequence. Only non-negative numbers larger than 0 are allowed.

along.with

take the length from the length of this argument

...

arguments passed to or from methods

Value

An ff vector with the generated sequence, similar as what seq generates but as an ff vector.
Mark: in case this would generate a sequence of length 0, will return integer().

See Also

Examples

## ffseq_len
ffseq_len(1000)
ffseq_len(1000000)

## ffseq
ffseq(from = 1, to = 4, by = 1)
ffseq(from = 1, to = 4, by = 0.5)
ffseq(from = 4, to = 1, by = -0.5)
ffseq(from = -100, to = 100, by = 0.3)
ffseq(from = 2, to = -100, length.out = 4)
ffseq(from = 2, to = -100, length.out = 4)
ffseq(from = 2, along.with=1000)
ffseq(to = 2, along.with=1000)
ffseq(along.with=1000)
ffseq(length.out=1000000)

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.