removed dependency of inference.r on dplyr