Skip to contents

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

Usage

a %>% b

Arguments

a

The preferred row

b

The non-preferred row

See also

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

Examples

1 %>% 2 # prefer row 1 to row 2
#> [[1]]
#> [1] 1
#> 
#> [[2]]
#> [1] 2
#> 
#> attr(,"class")
#> [1] "list"   "strict"