Learn R Programming

changepoint (version 2.2.2)

nseg: Generic Function - nseg

Description

Generic function

Usage

nseg(object)

Arguments

object

Depending on the class of object depends on the method used (and if one exists)

Value

Depends on the class of object, see individual methods

Details

Generic Function

See Also

nseg-methods

Examples

Run this code
# NOT RUN {
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