fwhich | R Documentation |
which
that is 'FileArray'
compatibleA generic function of which
that is 'FileArray'
compatible
fwhich(x, val, arr.ind = FALSE, ...)
## Default S3 method:
fwhich(x, val, arr.ind = FALSE, ...)
## S3 method for class 'FileArray'
fwhich(x, val, arr.ind = FALSE, ...)
x |
any R vector, matrix, array or file-array |
val |
values to find |
arr.ind |
logical; should array indices be
returned when |
... |
further passed to |
The indices of x
elements that are listed in val
.
# Default case
x <- array(1:27, rep(3,3))
fwhich(x, c(4,5))
# file-array case
arr <- filearray_create(tempfile(), dim(x))
arr[] <- x
fwhich(arr, c(4,5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.