Non Duplicated Rows in Data Frame
nonDuplicated.Rd
Subset 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
x
without quotes.- change.rownames
if original rownames of
x
are to be replaced by unique non duplicated values ofy
.- na.rm
logical. If rows should be removed where
y
isNA
. This is to be applied if values ofy
are 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.