I am a beginner and I have this data frame with height (x ft' y inches") I need to convert this value to a single number for height in inches
height_w_shoes | height_wo_shoes |
---|---|
5'11" | 5'10" |
6'1" | 6'0.25 |
6.5.25" | 6'4" |
I need to fix the typo in the last row of column "height_w_shoes" (or maybe not, depending on the solution, currently a "." when it should be a "'") and then convert these measurements into inches as such:
height_w_shoes | height_wo_shoes |
---|---|
71 | 70 |
73 | 72.25 |
77.25 | 76 |
I am super stuck as I am having a hard time converting these string variables into numeric values. Please help, Thank you