I have a list of vectors, say:
li <- list( c(1, 2, 3), c(1, 2, 3, 4), c(2, 3, 4), c(5, 6, 7, 8, 9, 10, 11, 12), numeric(0), c(5, 6, 7, 8, 9, 10, 11, 12, 13) )
And I would like to remove all vectors that are already contained in others (greater than or equal to), as well as all empty vectors
In this case, I will only have a list
1 2 3 4 5 6 7 8 9 10 11 12 13
Is there any useful feature to achieve this?
Thank you in advance