[R] indexing problem

diana.chirac@free.fr diana.chirac at free.fr
Tue Oct 19 18:49:55 CEST 2004


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




More information about the R-help mailing list