Validation For series Objects

DESCRIPTION:

Validation function for series objects.

USAGE:

seriesValid(object, postype="positions") 

REQUIRED ARGUMENTS:

object
object to be validated.

OPTIONAL ARGUMENTS:

postype
type of positions object to check for (e.g. "positionsCalendar").

VALUE:

T if the object is valid, and a descriptive string if it is not.

DETAILS:

This function checks to see that object is a valid series object. It checks that the positions slot has an is relationship to postype, and that the length of the positions and data slots agree. It also checks that the data slot holds a rectangular object, using is.rectangular.

SEE ALSO:

class, .

EXAMPLES:

obj <- new("signalSeries") 
seriesValid(obj, "positionsNumeric")