r - Ignoring NAs in a dataframe when finding unique rows -


i have dataframe 20 columns , 200 rows, , find unique rows. problem every row has few nas mixed in: missing data , nas treated "wildcard", not used match other nas.

the following 2 rows should recognized match (ie non-unique)

t, s, na, z na, s, g, z 

i've tried incomparables argument unique function, doesn't seem implemented. lot.

put in double loop:

all(na.omit(x[1,] == x[2,])) 

replacing 1 , 2 , j cycle through comparisons need check.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -