I have letters, for example: (abc)
I want your combinations.
I need a vector with output ("a-b" "a-c" "b-c")
.
I use the function:
CL<-combn(letters[1:3], 2,simplify = T)
CL.1 <-c(as.vector(CL))
CL.1
But I can not give you that way out.
Can you help me with this exit?