0

The *apply (apply, tapply, lapply etc.) are a very useful and straightforward method of applying a function across an array of data, with the generic structure:

*apply(data, function ...)

However, I cannot find a list of valid functions.

Can anyone provide a link to such a list?

MrFlick
  • 195,160
  • 17
  • 277
  • 295
Charles Brewer
  • 183
  • 2
  • 12

1 Answers1

2

For lapply and its variants sapply, vapply and eapply, the only restriction is that the function can only be vectorised over a single argument. (All other arguments must be scalar.) mapply exists to get around this restriction.

Can anyone provide a link to such a list?

So, um, no, no-one can provide a link to such a list, because that list doesn't exist.

Richie Cotton
  • 118,240
  • 47
  • 247
  • 360