Match and duplicated for simple lists

DESCRIPTION:

Match and duplicated for simple lists

USAGE:

matchList(x, table, nomatch=NA, incomparables=F)
duplicatedList(x, incomparables = F)

REQUIRED ARGUMENTS:

x
A list of atomic vectors all of the same length.
table
A list of atomic vectors all of the same length, with the same number of such vectors as x.

OPTIONAL ARGUMENTS:

nomatch
The integer value to return if there is no match.
incomparables
This must be FALSE. It is present to make the argument list like that of match and duplicated.

VALUE:

See or . These functions treat the list as a simple form of a data frame.

DETAILS:

These functions are versions of match.data.frame and duplicated.data.frame that are faster and use less memory but do not have the same functionality. They will only work if all columns are numeric, complex, or character.

SEE ALSO:

, .

EXAMPLES:

duplicatedList(list(rep(1:4,each=4), rep(1:8, each=2)))
#  [1] F T F T F T F T F T F T F T F T
matchList(list(c(2,5), c("b","h")), table=list(1:10,letters[1:10]))  
# [1]  2 NA