modify is a function to augment dplyr for quick replacement by reference as in data.table