Skip to content
Prev 367164 / 398506 Next

Is a list an atomic object? (or is there an issue with the help page of ?tapply ?)

Hi,

tapply() will work on any object 'X' that has a length and supports
single-bracket subsetting. These objects are sometimes called
"vector-like" objects. Atomic vectors, lists, S4 objects with a "length"
and "[" method, etc... are examples of "vector-like" objects.

So instead of saying

   X: an atomic object, typically a vector.

I think it would be more accurate if the man page was saying something
like

   X: a vector-like object that supports subsetting with `[`, typically
      an atomic vector.

H.
On 02/04/2017 04:17 AM, Tal Galili wrote: