subset-odm function

Subset using the [ operator.