R tip: Quick lookup tables with named vectors
Learn an easy method to use key-value pairs in R