R/percentDiff.R

Defines functions percentDiff

# 求两者的比分比差 x 100
#' @export
percentDiff = function(a, b, digit = 2) {
	#NullCheck::stopNull()
  round(((a / b) - 1) * 100, digit)
}
itsaquestion/MyUtils documentation built on Aug. 25, 2019, 9:46 p.m.