1. Learn
  2. /
  3. Courses
  4. /
  5. Cleaning Data in R

Connected

Exercise

Comparing pairs

Now that you've generated the pairs of restaurants, it's time to compare them. You can easily customize how you perform your comparisons using the by and default_comparator arguments. There's no right answer as to what each should be set to, so in this exercise, you'll try a couple options out.

dplyr and reclin are loaded and zagat and fodors are available.

Instructions 1/2

undefined XP
  • 1
    • Compare pairs by name using lcs() distance.
  • 2
    • Compare pairs by name, phone, and addr using jaro_winkler().