What is the fastest way to check if a value exists in a data.table?. Suppose that
How about the base R idiom:
any(my.value %in% my.vector)
This is not a data.table specific idiom but is quite efficient I believe.
data.table