Rescale a variable from one reference total to another
Source:R/core_model_all_herd.R
rescale_x_to_y.RdRescales a vector of values expressed relative to an original reference
(x_reference_from) so that they sum, or scale proportionally, to a
new target reference (y_scaling_variable). Zero values are preserved
as zero.
Details
This function is part of the run_all_herd_module().