powered by
rerange(data, min.goal = 0, max.goal = 1, min.data = min(data, na.rm=na.rm), max.data = max(data, na.rm=na.rm), center = NA, na.rm=FALSE)
data
min
max
rerange(data=1:20) rerange(data=1:30, center=5)
Run the code above in your browser using DataLab