Added: if class has no observations, generate empty subset (i.e. subset with NAs).