Hi, I have a k-level factor F of length n that I would like to use to extract from an n-by-k matrix M a vector V such that V[i] = M[i,as.numeric(F)[i]] I don't currently understand how to do that in R -- can anyone explain to me how to do so? Thanks, Roger Levy