Tidy big file measures into a function