convert bitwise enum value to R