which
'FileArray'
R/methods.R
fwhich.Rd
A generic function of which that is 'FileArray' compatible
fwhich(x, val, arr.ind = FALSE, ...) # S3 method for default fwhich(x, val, arr.ind = FALSE, ...) # S3 method for FileArray fwhich(x, val, arr.ind = FALSE, ...)
any R vector, matrix, array or file-array
values to find
logical; should array indices be returned when x is an array?
x
further passed to which or arrayInd
arrayInd
The indices of x elements that are listed in val.
val
# Default case x <- array(1:27, rep(3,3)) fwhich(x, c(4,5)) #> [1] 4 5 # file-array case arr <- filearray_create(tempfile(), dim(x)) arr[] <- x fwhich(arr, c(4,5)) #> [1] 4 5