R Tutorial: The map family of functions