Description Usage Arguments Value Examples
The function recursively filters the data by a given series of
conditions. The filter can be a single condition or multiple
conditions. .data
will be filtered by the first condition;
then the results will be filtered by the second condition, if any;
then the results will be filtered by the third, if any, etc. The
results only contain elements satisfying all conditions specified
in ...
.
1 | list.filter(.data, ...)
|
.data |
A |
... |
logical conditions |
elements in .data
satisfying all conditions
1 2 3 4 5 6 |
$p2
$p2$type
[1] "B"
$p2$score
$p2$score$c1
[1] 9
$p2$score$c2
[1] 9
$p3
$p3$type
[1] "B"
$p3$score
$p3$score$c1
[1] 9
$p3$score$c2
[1] 7
$p1
$p1$type
[1] "A"
$p1$score
$p1$score$c1
[1] 10
$p1$score$c2
[1] 8
$p2
$p2$type
[1] "B"
$p2$score
$p2$score$c1
[1] 9
$p2$score$c2
[1] 9
$p2
$p2$type
[1] "B"
$p2$score
$p2$score$c1
[1] 9
$p2$score$c2
[1] 9
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.