first commit, this function is identical to the one in the faoswsProductionImputation package