Skip to content
Prev 311842 / 398503 Next

printing difftime summary

On Nov 24, 2012, at 7:48 PM, Sam Steingold wrote:

            
In the usual way. If you know that the function will be called with  
arguments from the summary.data.frame function then you should allow  
the argument list to accept them. You can ignore them or provide  
provisions for them. You just can't define your function to have only  
one argument if you expect (as you should since you passes summary a  
dataframe object) that it might be called within summary.data.frame.

This is the argument list for summary.data.frame:

 >   summary.data.frame
function (object, maxsum = 7, digits = max(3, getOption("digits") -
     3), ...)
summary.difftime <- function (v, ... ) { ................

There are many asked and answered questions on rhelp about how to deal  
with the "dots" arguments.