Swaps "<" and ">": the bound operators of a Bayes factor in the BF10 orientation become those of its reciprocal in the BF01 orientation, and the other way round. Missing operators (exact values) are kept.

invert_BF_bound_operator(operator)

Arguments

operator

a character vector of bound operators ("<", ">" or NA), or a vector of only NA values. Other values are rejected.

Value

invert_BF_bound_operator() returns a character vector of the length of operator (without names) with the operators swapped.

Examples

invert_BF_bound_operator(c("<", ">", NA))
#> [1] ">" "<" NA