unique_cause function

get unique causes, regardless of the actual order in combo

get unique causes, regardless of the actual order in combo

unique_cause(cause_vec)

Arguments

  • cause_vec: a vector of characters with potential combo repetitions written in scrambled orders separated by "+"

Returns

a vector of characters with unique meanings for latent causes

Examples

x <- c("A","B","A","CC+DD","DD+CC","E+F+G","B") unique_cause(x)
  • Maintainer: Zhenke Wu
  • License: MIT + file LICENSE
  • Last published: 2024-01-30