Access the data inside an S4 method definition

methodFunction(f, signature, package)

methodFormals(f, signature, package)

Arguments

f

a generic function or the character-string name of one.

signature

the signature of classes to match to the arguments of f. See the details below.

package

character(1). Package name.

Value

  • methodFormals: list. Extract the sealed formal arguments.

  • methodFunction: function. Extract the sealed function.

See also

Examples

## Function ==== x <- methodFunction( f = "as.data.frame", signature = "DataFrame", package = "BiocGenerics" ) class(x)
#> [1] "function"
#> $x #> #> #> $row.names #> NULL #> #> $optional #> [1] FALSE #> #> $... #> #>
## Formals ==== x <- methodFormals( f = "as.data.frame", signature = "DataFrame", package = "BiocGenerics" ) class(x)
#> [1] "pairlist"
#> $x #> #> #> $row.names #> NULL #> #> $optional #> [1] FALSE #> #> $... #> #>