Removing old weighted.median function in favor of weightedMedian from matrixStats package