[R] the way to look at all the codings of any functions

2007-06-17 Thread ebi
Dear SIr, In case of looking at the codes of the fuction, cov, we find all the codings below. But, incase of mean, we don't find the contents. Please show me the way to look at all the codings of any functions. Best regards, Kei --- cov function (x, y = NULL, use =

Re: [R] the way to look at all the codings of any functions

2007-06-17 Thread Petr Klasterecky
Someone with more experience could certainly provide a more precise answer, but basically you came across something called generic functions in R. This concept allows mean() to be called on various data structures without extra care. See ?UseMethod methods(mean) getAnywhere(mean.default) For