Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

apollo (version 0.1.0)

apollo_keepRows: Keeps only some rows

Description

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

Usage

apollo_keepRows(v, r)

Arguments

v

Numeric scalar, vector, matrix or 3-dim array.

r

Boolean vector. As many elements as rows in v. TRUE for keeping the row. FALSE to drop it.

Value

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