Learn R Programming

baker (version 1.0.4)

unique_cause: get unique causes, regardless of the actual order in combo

Description

get unique causes, regardless of the actual order in combo

Usage

unique_cause(cause_vec)

Value

a vector of characters with unique meanings for latent causes

Arguments

cause_vec

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

Examples

Run this code
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