powered by
Generic function
nseg(object)
Depends on the class of object, see individual methods
object
Depending on the class of object depends on the method used (and if one exists)
Rebecca Killick
Generic Function
nseg-methods
x=new("cpt") # new cpt object nseg(x) # returns the number of segments (i.e. length of the cpts slot)
Run the code above in your browser using DataLab