The expression opf the Rmerge value did not indicate that one is dealing with unmerged data. an extra index j does the job