Advanced functional programming R tricks to feel like a hacker