Extract superior coalitions from coalition string or vector

get_superior(string, pattern = "_", collapse = "_")

Arguments

string

A character.

pattern

Pattern to look for (regular expression).

collapse

string that will be used to concatenate multiple elements obtained by splitting string to one string.

Value

A character vector of all proper subsets (superior coalitions) of the parties in string.

See also

stringr str_split