assign_slice function

Assign a value to a slice of data (set of rows meeting a condition, and specified set of columns).