I've got data that, for the most part, reports height in centimeters, but with the occasional value (due to different sites, etc.) in inches and feet. So, for example, the data might look like:
Height
162
148
153
5' 3"
147
6' 0"
182
Clearly, this is a problem for parsing the data, let alone using it. Is there a clean programatic way to convert the Imperial units into their metric counterparts within R?
I can find a number of packages like measurements
that appear to be able to handle unit conversions, but nothing seems to clearly address the weird hybrid of both feet and inches.