indexData function

Indexing a Matrix or Data Frame According to Given Indices