Skip to content
Prev 301026 / 398503 Next

Function for ddply

Not sure how to help you, because your example is not reproducible (does not run on my computer).

Some comments:

Avoid using the attach function. It is way better to use the data argument available in most functions.

The summarise function is designed for interactive use. You should probably write your own .FUN function if you are calling ddply within your own function.  See the help for ddply for examples of how to do that.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.
Hutch Pollock <hutchpollock at gmail.com> wrote: