powered by
Generic function
method(object)<-value
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)
Replacement value
Rebecca Killick
Generic Function
method<--methods
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