unique_elem {exams.forge} | R Documentation |
Unique Elements
Description
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.
Usage
unique_elem(x, elem = NULL)
Arguments
x |
a |
elem |
character: list elements which are used to check if |
Value
A reduced hyperloop
object
Examples
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"))
[Package exams.forge version 1.0.10 Index]