Adding an option to the subsetting functions for the case where there no observations in the subset. Added also function dinDS.