vapply

The lapply() family

Blog post to understand the apply functions