DataExtractionFunction for manipulating datasets