extractIndex function

Indexing to extract records of a sdmdata object