Vectorising code

In a perfect world I could be able to write all my code as vectorised functions. This is a helpful tutorial for the overall concept.

Data capentary tutorial