R在DataFrame列中高效查找值

data[data$start <= start & data$end >= end, 1]


最佳答案

Lookup performance in R - Joseph Adler. I find it to be quite comprehensive for my needs. He advocates the double bracket notation ([[) and provides time comparisons for multiple alternatives.