Alternative strategy to current method: (1) take the whole string of the appropriate part (for first ( to comma; for last comma to ); for only ( to ). (2) strip out all whitespace and special characters with the stringr functions, leaving only numbers, decimals, and minus signs, (3) make sure there's only 1 decimal, (4) run as.numeric().
Alternative strategy to current method: (1) take the whole string of the appropriate part (for first ( to comma; for last comma to ); for only ( to ). (2) strip out all whitespace and special characters with the stringr functions, leaving only numbers, decimals, and minus signs, (3) make sure there's only 1 decimal, (4) run as.numeric().