which: Generic which function

Description Usage Arguments Methods (by class) Note

View source: R/which.R

Description

The function is needed, because which of base R is not generic.

Usage

1
2
3
4
which(x, ...)

## Default S3 method:
which(x, ...)

Arguments

x

an R object.

...

further arguments passed to or from methods.

Methods (by class)

Note

As recommended in Section 7.1 ("Adding new generics") of "Writing R Extensions", the implementation of which.default has been made a wrapper around base::which.


andreas50/uts documentation built on April 8, 2021, 10:03 a.m.