powered by
get unique causes, regardless of the actual order in combo
unique_cause(cause_vec)
a vector of characters with unique meanings for latent causes
a vector of characters with potential combo repetitions written in scrambled orders separated by "+"
x <- c("A","B","A","CC+DD","DD+CC","E+F+G","B") unique_cause(x)
Run the code above in your browser using DataLab