1. Learn
  2. /
  3. Courses
  4. /
  5. Data Science R Basics

Exercise

Logical operator

Instructions

100 XP

We are again working with the characters abbs <- c("MA", "ME", "MI", "MO", "MU")

  • In a previous exercise we computed the index abbs%in%murders$abb. Based on that, and using the which function and the ! operator, get the index of the entries of abbs that are not abbreviations.
  • Show the entries of abbs that are not actual abbreviations.