Description Usage Arguments Value See Also Examples
Divide list/vector elements into exclusive groups
1 | list.group(.data, ..., sorted = TRUE)
|
.data |
A |
... |
One or more expressions in the scope of each element to evaluate as keys |
sorted |
|
A list of group elements each contain all the elements in .data
belonging to the group
1 2 3 4 5 |
$A
$A$p1
$A$p1$type
[1] "A"
$A$p1$score
$A$p1$score$c1
[1] 10
$A$p1$score$c2
[1] 8
$B
$B$p2
$B$p2$type
[1] "B"
$B$p2$score
$B$p2$score$c1
[1] 9
$B$p2$score$c2
[1] 9
$B$p3
$B$p3$type
[1] "B"
$B$p3$score
$B$p3$score$c1
[1] 9
$B$p3$score$c2
[1] 7
$`8`
$`8`$p3
$`8`$p3$type
[1] "B"
$`8`$p3$score
$`8`$p3$score$c1
[1] 9
$`8`$p3$score$c2
[1] 7
$`9`
$`9`$p1
$`9`$p1$type
[1] "A"
$`9`$p1$score
$`9`$p1$score$c1
[1] 10
$`9`$p1$score$c2
[1] 8
$`9`$p2
$`9`$p2$type
[1] "B"
$`9`$p2$score
$`9`$p2$score$c1
[1] 9
$`9`$p2$score$c2
[1] 9
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.