Split works for discrete and continuous data sets