Description Usage Arguments Value Examples
View source: R/which_customized.R
Same function as base::which, except that it returns NA instead of integer(0) when there is not TRUE in x
1 | which.customized(x, arr.ind = FALSE, useNames = TRUE)
|
x |
a logical vector or array. NAs are allowed and omitted (treated as if FALSE). |
arr.ind |
logical; should array indices be returned when x is an array? |
useNames |
logical indicating if the value of arrayInd() should have (non-null) dimnames at all. |
If TRUE present in x: same thing as base::which, else returns NA
1 2 | which(letters == "a character that doesn't exist")
which.customized(letters == "a character that doesn't exist")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.