Keys

Keys = the variables used to connect a pair of data frames in a join.

  • x$key must match y$key for a row in x to be matched to a row in y
  • compound key: key that consists of > 1 variable