ff_which_matrix: which in ff matrices

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Returns the indices of matching elements.

Usage

1
ff_which_matrix(X, cond, by = 100, enclos = parent.frame())

Arguments

X

The ff_matrix to scan

cond

The condition to evaluate

by

The chunk size.

Value

X

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
 
mymat <- ff(vmode="double", dim=c(50,50))
mymat[4,5] <- 3
mymat[5,5] <- 4
mymat[46, 46] <- 1

ff_which_matrix(mymat, mymat > 2)

r <- 1.5
ff_which_matrix(mymat, mymat > r)

meowcat/fastliclust documentation built on May 22, 2019, 6:51 p.m.