Since I'm in here, `sapply` is a bit dangerous because you don't know what type it will return. I think it would be better to be explicit, so you'd throw a reasonable error message if the input has columns of mixed case.