Learn R Programming

splus2R (version 1.0-1)

signalSeries: Constructor function for the signalSeries class

Description

Construct a signalSeries object from positions and data, or return an empty signalSeries object.

Usage

signalSeries(data, positions., units, units.position, from=1, by=1)

Arguments

by
amount to skip for positions.
data
variable data, which will be converted to a rectangular object with the as.rectangular function.
from
starting value of positions.
positions.
numeric or numeric sequence object to use as the time/position values.
units
units for variable data.
units.position
units for positions.

Value

  • a signalSeries object with the given data and positions.

concept

series classes

Details

If no arguments are supplied, the default (empty) signalSeries object is returned. Otherwise, a signalSeries object is created with the given positions and data, and units if they are supplied. As an alternative to supplying the positions directly, they can be supplied by giving from and by, in which case the positions are generated as a numeric sequence with the right length to match the data.

See Also

numericSequence.