The ms package contains definition of and access to MeasurementSets. Furthermore, it has functionality to do selection on MeasurementSets.