Non Duplicated Rows in Data Frame
nonDuplicated.RdSubset a data frame using non duplicated elements in a vector.
Arguments
- x
a data frame.
- y
a vector. It can be a name of a column in
xwithout quotes.- change.rownames
if original rownames of
xare to be replaced by unique non duplicated values ofy.- na.rm
logical. If rows should be removed where
yisNA. This is to be applied if values ofyare used as rownames by settingchange.rownames = TRUE
Details
This function is handy to keep only one set of duplicated data that is common in long formatted database files.