Description Usage Arguments Value See Also Examples
do.call
constructs and executes a function call from a name or a
function and a list of arguments to be passed to it.
NOTE: This man page is for the do.call
S4 generic function
defined in the BiocGenerics package.
See ?base::do.call
for the default method
(defined in the base package).
Bioconductor packages can define specific methods for objects
not supported by the default method.
1 | do.call(what, args, quote=FALSE, envir=parent.frame())
|
what |
The default method expects either a function or a non-empty character
string naming the function to be called.
See Specific methods can support other objects. Please refer to the documentation of a particular method for the details. |
args |
The default method expects a list of arguments to the function
call (the Specific methods can support other objects. Please refer to the documentation of a particular method for the details. |
quote, envir |
See |
The result of the (evaluated) function call.
Specific methods defined in Bioconductor packages should behave as consistently as possible with the default method.
base::do.call
for the default do.call
method.
showMethods
for displaying a summary of the
methods defined for a given generic function.
selectMethod
for getting the definition of
a specific method.
BiocGenerics for a summary of all the generics defined in the BiocGenerics package.
1 2 3 | do.call # note the dispatch on the 'what' and 'args' args only
showMethods("do.call")
selectMethod("do.call", c("ANY", "ANY")) # the default method
|
Loading required package: parallel
Attaching package: ‘BiocGenerics’
The following objects are masked from ‘package:parallel’:
clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
clusterExport, clusterMap, parApply, parCapply, parLapply,
parLapplyLB, parRapply, parSapply, parSapplyLB
The following objects are masked from ‘package:stats’:
IQR, mad, sd, var, xtabs
The following objects are masked from ‘package:base’:
anyDuplicated, append, as.data.frame, basename, cbind, colnames,
dirname, do.call, duplicated, eval, evalq, Filter, Find, get, grep,
grepl, intersect, is.unsorted, lapply, Map, mapply, match, mget,
order, paste, pmax, pmax.int, pmin, pmin.int, Position, rank,
rbind, Reduce, rownames, sapply, setdiff, sort, table, tapply,
union, unique, unsplit, which.max, which.min
standardGeneric for "do.call" defined from package "BiocGenerics"
function (what, args, quote = FALSE, envir = parent.frame())
standardGeneric("do.call")
<bytecode: 0x55827d36e730>
<environment: 0x55827d376e30>
Methods may be defined for arguments: what, args
Use showMethods("do.call") for currently available ones.
Function: do.call (package BiocGenerics)
what="ANY"
Method Definition (Class "derivedDefaultMethod"):
function (what, args, quote = FALSE, envir = parent.frame())
{
if (!is.list(args))
stop("second argument must be a list")
if (quote)
args <- lapply(args, enquote)
.Internal(do.call(what, args, envir))
}
<bytecode: 0x55827d36bbc0>
<environment: namespace:base>
Signatures:
what
target "ANY"
defined "ANY"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.