visit ij-th element in a data.frame