select function

Get a subset of an object.