recur_unique | R Documentation |
Ensure each successive list element is a distinct set relative to all previous elements
recur_unique(lst, curr.iter = 0L, out = list())
lst |
A list, typically of length > 1 with elements comprising atomic vectors |
curr.iter |
Not used; internal counter |
out |
Not used; result accumulator |
There is no type checking for list elements, so standard coercion rules apply, and this may result in unexpected results. You should ensure that types are homogeneous.
A list of identical length to the input, with element lengths equal to or shorter than each initial element length, depending on the degree of overlap and/or if any duplication was present within each element.
lst <- list( v1 = 1:10L, v2 = 1:12L, v3 = 1:13L ) recur_unique(lst)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.