A kludge to get around a certain problem in using
...' ellipsis function arguments.
A function that takes one argument
Arguments to which the function should be applied
dotsapply(fun,...)" gives the same result as
list(...), fun). However, the construction with "
list", when used for
variables enumerated explicitely, will result in their duplication.
Assume, for example, that you have three very large vectors
c, whose lengths you wish to know. If your write "
length )", R will duplicate all three vectors in memory when constructing the
list, which results in unnecessary use of memory. The alternative "
length, a, b, c )" avoids this. Of course, you could also write "
length(a), length(b), length(c) )", which neither causes duplication.
This last possibility is, however, not an option, if, instead of "
you have ellipsed function arguments, i.e. literally "
...". In this special
dotsapply comes in handy, and as this case arose in
hilbertDisplay, I implemented
dotsapply as a kludge and export
it from the package just in case somebody ahs use for it.
A list of function values
Simon Anders, EMBL-EBI, email@example.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.