Skip to contents

A helper function to add in preferences in a user-friendly way.

Usage

a %=% b

Arguments

a

The first alternative

b

The second alternative

See also

Other preferences: %<%(), %>%()

Examples

1 %=% 2 # indifferent between 1 and 2
#> [[1]]
#> [1] 1
#> 
#> [[2]]
#> [1] 2
#> 
#> attr(,"class")
#> [1] "list"  "indif"