powered by
This function allows extracting NA-neighbour value
.extrNAneighb(x, grp)
snumeric vector
initial matrix to treat
(factor) grouing of replicates
unique, nonAmbiguousNum, faster than firstOfRepeated which gives more detail in output (lines/elements/indexes of omitted)
unique
nonAmbiguousNum
firstOfRepeated
.extrNAneighb(c(11:14,NA), rep(1,5))
Run the code above in your browser using DataLab