hijack: Shortcut tool for altering a function

hijackR Documentation

Shortcut tool for altering a function

Description

Shortcut tool for altering a function

Usage

hijack(FUN, ...)

Arguments

FUN

An already defined function

Details

Taken from https://www.r-bloggers.com/hijacking-r-functions-changing-default-arguments/

Examples

# Here is an example
.median <- hijack(stats::median, na.rm = TRUE)


rethinkpriorities/rp-r-package documentation built on Jan. 7, 2023, 10:11 p.m.