Since you say you have big data, I ran a benchmark to check performance. I have revised my answer so that the rcDNA
function is significantly faster. NewReplacer
now runs once at the start of the program rather than each time the rcDNA
function is called.
1 Like