| FilterMatrix-class {S4Vectors} | R Documentation |
Matrix for Filter Results
Description
A FilterMatrix is typically produced by
evalSeparately() on a FilterRules object.
Each row corresponds to one record in the object being filtered, and
each column corresponds to one filter rule. Matrix values indicate
whether a given record passed a given rule. The FilterRules are stored
within the FilterMatrix object, for the sake of
provenance. In general, a FilterMatrix behaves like an
ordinary matrix.
Accessor methods
In the code snippets below, x is a FilterMatrix object.
filterRules(x):Get the
FilterRulescorresponding to the columns of the matrix.
Constructor
FilterMatrix(matrix, filterRules):Constructs a
FilterMatrix, from a givenmatrixandfilterRules. Not usually called by the user, seeevalSeparately.
Utilities
summary(object, discarded = FALSE, percent = FALSE):-
Returns a numeric vector containing the total number of records (
nrow), the number passed by each filter, and the number of records that passed every filter. IfdiscardedisTRUE, then the numbers are inverted (i.e., the values are subtracted from the number of rows). IfpercentisTRUE, then the numbers are percent of total.
Author(s)
Michael Lawrence
See Also
-
evalSeparatelyis the typical way to generate this object. -
FilterRules objects.