This PR includes an additional argument overwrite in the calc_addVariable function.
If set to TRUE, the default and current behaviour, values will be overwritten if they already exist.
If set to FALSE, values will not be overwritten if they already exist.
I found this helpful when dealing with incomplete reporting from e.g. the AR6 database, when sometimes you want to calculate a value only if it isn't reported already.
This PR should not change the default behaviour of the function.
Please check for errors as I'm certainly not a quitte expert. Thanks!
This PR includes an additional argument
overwrite
in thecalc_addVariable
function.If set to
TRUE
, the default and current behaviour, values will be overwritten if they already exist.If set to
FALSE
, values will not be overwritten if they already exist.I found this helpful when dealing with incomplete reporting from e.g. the AR6 database, when sometimes you want to calculate a value only if it isn't reported already.
This PR should not change the default behaviour of the function.
Please check for errors as I'm certainly not a quitte expert. Thanks!