Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

apollo_keepRows

Keeps only some rows


Description

Given a numeric object (scalar, vector, matrix or 3-dim array) keeps only the specified 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.


apollo

Tools for Choice Model Estimation and Application

v0.2.4
GPL-2
Authors
Stephane Hess [aut], David Palma [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.