Learn R Programming

changepoint (version 0.3)

ncpts: Generic Function - ncpts

Description

Generic function

Usage

ncpts(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

ncpts-methods

Examples

Run this code
x=new("cpt") # new cpt object
ncpts(x) # returns the number of changepoints (i.e. length of the cpts slot in x minus 1)

Run the code above in your browser using DataLab