Can't access another Data Frame Cooumn in Custom command

in below command

or_pr_train$user_id <- orders$user_id[match(or_pr_train$order_id, orders$order_id)]

How to access another Dataframe column here its is “orders”?