'ds.meanByClass' thoroughly amended to accomodate situations where there is an attempt to subset on an invalid table.