[Rd] can we override "if" in R?
csardi.gabor at gmail.com
Sat Mar 4 18:41:18 CET 2017
You can. Perhaps needless to say, be careful with this.
❯ `if` <- function(...) FALSE
❯ if (TRUE) TRUE else FALSE
On Sat, Mar 4, 2017 at 5:36 PM, Da Zheng <zhengda1936 at gmail.com> wrote:
> I heard we can override almost everything in R. Is it possible to
> override "if" keyword in R to evaluate my own object instead of a
> logical value?
> R-devel at r-project.org mailing list
More information about the R-devel