unique_elem | R Documentation |
Deletes all elements from a hyperloop
object that are identical.
Since the result in each run can be a list itself, only specific list elements can be used for comparison.
unique_elem(x, elem = NULL)
x |
a |
elem |
character: list elements which are used to check if |
A reduced hyperloop
object
x <- rnorm(100)
# 6 results: 3 different mu's, 2 var.equals
hl <- hyperloop(t.test, x=x, mu=list(-1, 0, 1), var.equal=list(TRUE, FALSE))
# reduction to 3 elements since var.equal does not play any role
length(unique_elem(hl))
# reduction to 1 element since the mean of x always the same
length(unique_elem(hl, "estimate"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.