fwhich {filearray}R Documentation

A generic function of which that is 'FileArray' compatible

Description

A generic function of which that is 'FileArray' compatible

Usage

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, ...)

Arguments

x

any R vector, matrix, array or file-array

val

values to find

arr.ind

logical; should array indices be returned when x is an array?

...

further passed to which or arrayInd

Value

The indices of x elements that are listed in val.

Examples



# 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))



[Package filearray version 0.1.6 Index]