Description Usage Arguments Value
Select rows/columns of a matrix using a predicate
1 |
predicate |
A function taking a row/column as first argument
and returning |
mat |
Matrix |
margin |
Whether to select rows or columns (1 = rows, 2 = columns). |
... |
Passed on to |
If margin
is 1, a matrix with the same number of
columns as mat
and including all rows of mat
for
which predicate
returned TRUE
. If margin
is 2, a matrix with the same number of rows as mat
and
including all columns of mat
for which predicate
returned TRUE
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.