Constructor Function For signalSeries Objects

DESCRIPTION:

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

USAGE:

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

REQUIRED ARGUMENTS:

data must be specified, unless the function is called with no arguments.

OPTIONAL ARGUMENTS:

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

VALUE:

a signalSeries object with the given data and positions.

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:

, , , , .

EXAMPLES:

signalSeries() 
signalSeries(data.frame(x = 11:20, y = 21:30), 1:10, 
             units = c("mm", "cm")) 
signalSeries(data = data.frame(x = 11:20), from = 1, by = 1)