filter_by_attribute | R Documentation |
Filters a configuration_set
or configuration_fit_set
by one
or more attributes' values.
filter_by_attribute(x, attribute, as.boolean = FALSE, ...)
x |
A |
attribute |
A named list containing the filter criteria. Each element in the list represents
an attribute to filter on. A list element's name should be an attribute name.
The element value should include one or more attribute values to select
|
as.boolean |
When |
A subset of objects that match the filter criteria or a boolean vector that
can be used to filter a configuration_set
or configuration_fit_set
,
depending on the as.boolean
parameter.
get_attribute
, configuration_set
,
configuration_fit_set
f_set <- c(star(2), star(3), star(4)) filter_by_attribute(f_set, list(group_size = 2:3)) f_set[filter_by_attribute(f_set, list(group_size = 2:3), as.boolean = TRUE)]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.