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
Post a Comment