localizeErrors function

Localize errors on records in a data.frame.