fineprint-global / fabio

Food and Agriculture Biomass Input-Output Tables
Other
17 stars 13 forks source link

Feed allocation error #53

Closed nk027 closed 4 years ago

nk027 commented 4 years ago

Use, line 438:

# for countries where no cattle, poultry and pigs are produced, assume the following feed types
total==0){
  sums <- c(1,2,2,1,1)
  total <- sum(sums)
}

This seems weird.

nk027 commented 4 years ago

Also why do we allocate rows from Bouwman to Krausmann and why via:

feed_a[1] <- feed_a[1] / sum(feeds) * sum(feed_a)