search for: toy_mm

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

Did you mean: tomm
2009 Dec 03
1
S4 and head() problems
...eric("head")}) setMethod("head",signature="mdm",function(x,n=6,...){ mdm(head(x at xold,n=n,...) , types=factor(head(x at types,n=n,...))) } ) If the above lines are part of the package source, and I install the package then sometimes I get errors like > head(toy_mm()) Error in function (classes, fdef, mtable) : unable to find an inherited method for function "head", for signature "matrix" > and sometimes it works as desired. Why should head() not be able to take the first few lines of a matrix? It seems to be "forgetting&quo...