numseq: Constructor for 'numericSequence' Class

numericSequenceR Documentation

Constructor for numericSequence Class

Description

Constructs numericSequence objects.

Usage

numericSequence(from, to, by, length.)

Arguments

from

start of the sequence.

to

end of the sequence.

by

increment for the sequence.

length.

length of the sequence; a non-negative integer.

Details

At least three of the four arguments must be supplied, unless the function is called with no arguments.

Value

returns a numericSequence object with properties given by the arguments, or the default numericSequence if no arguments are supplied.

See Also

numericSequence class.

Examples

numericSequence()
# The following all produce a sequence running from 1 to 10:
numericSequence(1, 10, 1)
numericSequence(1, by = 1, length = 10)
numericSequence(1, 10, length = 10)
numericSequence(to = 10, by = 1, length = 10)

splusTimeDate documentation built on July 7, 2022, 5:05 p.m.