Skip to content

How to remove method initialize./package methods

1 message · Wolski

#
Have defined a new class (by setClass) and added a method initialize (setMethod("initialize"). 

setMethod("initialize"
          ,signature(.Object="Massvector")
          ,function(.Object,data,info,tcoor,gelcoor)

But I dont like it and want to remove it!
...
.Object = "Massvector"
    (inherited from .Object = "ANY")
[1] FALSE
Warning message: 
No method found for function "initialize" and signature "Massvector" in: removeMethod("initialize", "Massvector") 



How to remove it?

Eryk.