Whenever I want to do something "map"py in R, I usually try to use a function in the apply family. However,