R RecordLinkage Identity

Viewed 1534

I am working with RecordLinkage Library in R. I have a data frame with id, name, phone, mail

My code looks like this:

ids = data$id
pairs = compare.dedup(data, identity=ids, blockfld=as.list(2,3,4))

The problem is that my ids are not the same in my result output so if I had this data:

id   Name     Phone    Mail
233  Nathali  2222     nathali@dd.com
435  Nathali  2222 
553  Jean     3444     jean@dd.com

In my result output I will have something like

id1 id2
1   2

Instead of

id1 id2
233 435 

I want to know if there is a way to keep the ids instead of the index, or someone could explain me the identity parameter.

Thanks

2 Answers

You have to replace the index column with your identify column.

Related