Closed maurolepore closed 5 months ago
Okay nice that means you found the bug? i think we only would use the jitter function on the Ecoinvent data anyway - so I think it is right to delete the NAs as long as for the final output all products are included again also those that don’t have a co2 footprint.
Yes, I now understand bug. There are two places with the same type of problem. One is when we summarize the range of co2_footprint and the other one is when we calculate the co2_avg.
Okay, I'll remove the NAs during those two computations and ensure to re-add them later (which seems to be the case already).
Closing because #743 already gives the user the ability to remove NA
s with na.rm = TRUE
. So from the perspective of tiltIndicator, this is solved. Now it's up to downstream packages to use this feature.
See also the relevant items in the changelog:
Relates to #743 Relates to https://github.com/2DegreesInvesting/tiltIndicatorAfter/issues/188
Created on 2024-03-13 with reprex v2.1.0