Learn R Programming

changepoint (version 2.2.2)

method<-: Generic Function - method<-

Description

Generic function

Usage

method(object)<-value

Arguments

object

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

value

Replacement value

Value

Depends on the class of object, see individual methods

Details

Generic Function

See Also

method<--methods

Examples

Run this code
# NOT RUN {
x=new("cpt") # new cpt object
method(x)<-"mean" # replaces the existing method slot in x with "mean"
# }

Run the code above in your browser using DataLab