apollo_filterRows {apollo}R Documentation

Remove specified rows

Description

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

Usage

apollo_filterRows(v, r)

Arguments

v

Numeric scalar, vector, matrix or 3-dim array. Rows of this object will be replaced by val and

r

Boolean vector. As many elements as rows in v. TRUE for replacing that row, FALSE for not changing it.

Value

The same argument v but only with the rows where r==TRUE.


[Package apollo version 0.0.8 Index]