apollo_keepRows function

Keeps only some rows

Keeps only some rows

Given a numeric object (scalar, vector, matrix or 3-dim array) keeps only the specified rows.

apollo_keepRows(v, r)

Arguments

  • v: Numeric scalar, vector, matrix or 3-dim array.
  • r: Boolean vector. As many elements as rows in utilities. TRUE for keeping the row. FALSE to drop it.

Returns

The same argument utilities but with the rows where r==FALSE removed.

  • Maintainer: Stephane Hess
  • License: GPL-2
  • Last published: 2025-03-12