Final quiz

Instruction

Okay, we need an ID. The ID will be the first part of a resident’s email address.

Exercise

Create new columns named id and domain using the email column and @ as a separator. Overwrite the personal_info dataset.

Stuck? Here's a hint!

Type:

personal_info <- separate(
  personal_info,
  email,
  sep= "@",
  into = c("id", "domain"))