Displaying 1 result from an estimated 1 matches for "sapply1".
Did you mean:
sapply
2010 Sep 21
2
lapply version with [ subseting - a suggestion
...ply(names(x), ... [i]),
lapply(seq_along(x), ... x[[i]] ... names(x)[i] ), or
for(i in seq_along(x)) ...
which is rather inconvenient.
How about an argument to lapply which would specify the [ or [[ subseting to use
in the splitting of the vector?
Or may be a different set of functions lapply1,
sapply1?
I believe this pattern is rather common for other users as well.
Thanks.
VS.