Note to self: cat works differently on Macs and PCs in terms of printing factors. PCs print factor level numbers, Macs print text.