Skip to content

Instantly share code, notes, and snippets.

@selva86
Created February 17, 2020 01:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save selva86/a2e22774345fc22798197a858bd87c50 to your computer and use it in GitHub Desktop.
Save selva86/a2e22774345fc22798197a858bd87c50 to your computer and use it in GitHub Desktop.
# 1. You have a vector which contains four coupons codes for Asian flights.
# Replace all 'asia' with 'europe'
flight_coupons <- c("asiafly", "asiaflynow", "asiaflymiles", "asiamarch")
# 2. Extract the first names from the emails.
emails <- c("vito.corleone@apple.com", "michael.corleone@reddit.com")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment