For string matching, you'd expect in(x, y) to tell you if x is a substring of y, that is, if "x in y". Analogously, you'd expect contains(x, y) to tell you if y is a substring of x.
#Rstats calls its function str_detect, which offers no clue as to the order of the arguments.