search for: semethod

Displaying 1 result from an estimated 1 matches for "semethod".

Did you mean: setmethod
2005 Jan 19
2
signif() generic
...;numeric", err="numeric")) I've already successfully implemented basic arithmetics using mostly the "Arith" group generics. But I'm running into trouble when trying to get signif() to work for my purposes, i.e. with a default argument (digits=2): When trying > seMethod("signif", signature(x="sec", digits="numeric")), function(x, digits=2){ # ...do something... } ) and > signif(sec1) I get > Error in signif(x, digits) : Non-numeric argument to mathematical function Putting a second argument (like digits=2) into the cal...