Applies a given function to a
MarkerList-class
object.
S4 (MarkerList)
`sapply`(X, FUN, ..., ASNEW = FALSE, ARG.NAMES = FALSE, simplify = TRUE,
USE.NAMES = TRUE)
X
.FUN
as a second
argument. In this case, the function is applie using
mapply
, with two vectorised arguments: the
list itself and its names.TRUE
, then
the result is simplified as in
sapply
. If FALSE
, then the
result is not simplified, and returned as a
MarkerList-class
object if possible, or as
a list otherwise. If NA
, then the result is not
simplified, and always returned as a list.?base::lapply
for a
description of these arguments. ?base::lapply
for a
description of these arguments. ?base::lapply
for a description of these arguments.