add intervals function to convert interval notation to definition as required by recode from car