SRFilterResult-class | R Documentation |
Objects of this class are logical vectors indicating records passing the applied filter, with an associated data frame summarizing the name, input number of records, records passing filter, and logical operation used for all filters in which the result participated.
SRFilterResult(x = logical(), name = NA_character_,
input = length(x), passing = sum(x), op = NA_character_)
## S4 method for signature 'SRFilterResult,SRFilterResult'
Logic(e1, e2)
## S4 method for signature 'SRFilterResult'
name(x, ...)
stats(x, ...)
## S4 method for signature 'SRFilterResult'
show(object)
x , object , e1 , e2 |
For |
name |
|
input |
|
passing |
|
op |
|
... |
Additional arguments, unused in methods documented on this page. |
Objects can be created through SRFilterResult
, but these
are automatically created by the application of srFilter
instances.
.Data
:Object of class "logical"
indicating
records that passed the filter.
name
:Object of class "ScalarCharacter"
representing the name of the filter whose results are
summarized. The name is either the actual name of the filter, or a
combination of filter names and logical operations when the
outcome results from application of several filters in a single
logical expression.
stats
:Object of class "data.frame"
summarizing
the name, input number of records, records passing filter, and
logical operation used for all filters in which the result
participated. The data.frame
rows correspond either to
single filters, or to logical combinations of filters.
Class "logical"
, from data part.
Class ".SRUtil"
, directly.
Class "vector"
, by class "logical", distance 2.
Class "atomic"
, by class "logical", distance 2.
Class "vectorORfactor"
, by class "logical", distance 3.
signature(e1 = "SRFilterResult", e2 =
"SRFilterResult")
: logic operations on filters.
signature(x = "SRFilterResult")
: Negate the outcome
of the current filter results
signature(x = "SRFilterResult")
: The name of the
filter that the results are based on.
signature(x = "SRFilterResult")
: a
data.frame
as described in the ‘Slots’ section of
this page.
signature(object = "SRFilterResult")
: summary of
filter results.
Martin Morgan mailto:mtmorgan@fhcrc.org
srFilter
fa <- srFilter(function(x) x %% 2 == 0, "Even")
fb <- srFilter(function(x) x %% 2 == 1, "Odd")
x <- 1:10
fa(x) | fb(x)
fa(x) & fb(x)
!(fa(x) & fb(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.