is_id function

Check if dt is uniquely identified by by variable