This function takes a character vector of conditions and shortens the predicates within each condition using a specified method.
Details
Each value in x
is a condition formatted as a string, e.g.,
"{a=1,b=100,c=3}"
(see format_condition()
). The function
shortens the predicates in each condition according to the specified
method
. The available methods are:
"letters"
: predicates are replaced with single letters from the English alphabet, starting withA
for the first predicate;"abbrev4"
: predicates are abbreviated to 4 characters usingabbreviate()
function;"abbrev8"
: predicates are abbreviated to 8 characters usingabbreviate()
function;"none"
: no shortening is applied, predicates remain unchanged.