uniqueVec {makePMG} | R Documentation |
The difference between this and unique
is that the list
is vectorized and the argument removeNA
allows you to
optionally remove NA
's.
uniqueVec(oList, removeNA=FALSE)
oList |
The list from which duplicates will be removed. |
removeNA |
A boolean value, if TRUE then duplicates will
be removed. |
Not much to say, unlist
then use unique
. NA
s are
replaced with the string NotMapped
.
A vector containing the unique elements in the input list.
E. Whalen and R. Gentleman
xx<-list(a= 1:10, b=c(22,3,5)) uniqueVec(xx)