as_numeric function

Convert factors to numeric variables