Reputation: 4100
I have searched enough but couldn't find the answer. If this is already asked please post the link.
I have a list which looks like this
sample.list <- as.list(c("a","b","c"))
I want to transform this list like below:
I don't want entries like {b,a} or {c,b} etc. This is just sample list, actual list can be of any length
Upvotes: 1
Views: 43