Hi, I have the following indexing problem, can you help me please ? Given: dm = a data.frame or a matrix dm, idx = a 2 columns (or any number) matrix with the same number of rows as dm I want get a subset of dm, for each row, the columns which specified by idx. thank you, diana