An R package for rule-based record correction and imputation