Changelog
Source:NEWS.md
r2dii.analysis 0.4.0
CRAN release: 2024-03-26
-
target_market_share
now outputstarget_*
value for allyear
s inscenario
(#481). - Complete deprecation of
ald
in favour ofabcd
(#466). -
target_market_share
now correctly handles input scenarios with a hyphen in their name (#425). -
target_market_share
now handlesabcd
with rows whereproduction
isNA
by filling with0
(#423).
r2dii.analysis 0.2.1
CRAN release: 2022-11-03
-
r2dii.analysis
has transferred to a new organization: https://github.com/RMI-PACTA/.
r2dii.analysis 0.2.0
CRAN release: 2022-05-05
New argument
abcd
oftarget_market_share()
andtarget_sda
supersedes the argumentald
(#404).target_sda()
now only outputs data forsector
values that are in all three input datasets (data
,ald
andco2_intensity_scenario
) (#390).target_sda()
now outputs unweightedemission_factor
ifby_company
isTRUE
(#376).target_sda()
gainsregion_isos
argument (#323).target_market_share()
now only outputs values for years that are in bothald
andscenario
inputs (#394).target_market_share()
now outputs two new columns,percentage_of_initial_production_by_scope
andscope
(ADO #4143).
r2dii.analysis 0.1.12
CRAN release: 2021-08-18
target_market_share()
now outputs 0technology_share
, for companies with 0 sectoral production (#306 @Antoine-Lalechere).target_sda()
now filtersscenario
start year to be consistent withald
start year (#346 @waltjl).
r2dii.analysis 0.1.10
CRAN release: 2021-07-09
target_market_share()
now sets all negativesmsp
targets to zero (#336).target_market_share()
now only outputssector
s that are present in all input datasets (#329).target_market_share()
now always adds targets for green technologies (defined byr2dii.data::green_or_brown
), even when not present in inputdata
(#318 @Antoine-Lalechere).target_market_share()
now correctly groups byregion
when calculatingtechnology_share
(#315 @Antoine-Lalechere).
r2dii.analysis 0.1.9
CRAN release: 2021-06-30
target_sda()
now only outputssector
values that are present in the inputco2_intensity_scenario
data (#308).target_sda()
now outputs targets for the range of years in the inputco2_intenstiy_scenario
(#307).
r2dii.analysis 0.1.8
CRAN release: 2021-05-22
target_market_share()
now correctly outputs targettechnology share
, in line with methodology (@georgeharris2deg #277).target_market_share()
now correctly projects technology share as ‘production / total production’ when computing by company, unweighted by relative loan size (@KapitanKombajn #288).target_market_share()
no longer outputs columnssector_weighted_production
ortechnology_weighted_production
. Those columns are internal so they shouldn’t face users (#291).
r2dii.analysis 0.1.6
CRAN release: 2021-03-10
-
target_market_share()
now correctly outputstechnology_share
with multiple loans at differentlevel
to the same company (@ab-bbva #265).
r2dii.analysis 0.1.5
CRAN release: 2021-01-22
target_market_share()
now errors if inputdata
has an unexpected column (@georgeharris2deg #267).target_market_share()
now correctly outputstechnology_share
with multiple loans to the same company (@georgeharris2deg #262, @ab-bbva #265).
r2dii.analysis 0.1.4
CRAN release: 2021-01-05
-
target_market_share()
now correctly outputs unweighted production by company, equal to ald-production for one company with multiple loans of different size (#255 @georgeharris2deg).
r2dii.analysis 0.1.3
CRAN release: 2020-12-15
-
target_market_share()
now correctly outputs unweighted production when multiple levels exist for the same company (#249).
r2dii.analysis 0.1.2
CRAN release: 2020-12-05
target_market_share()
now outputsweighted_technology_share
that correctly sums to 1 when grouped bysector
,metric
andscenario
(#218).target_market_share()
now correctly outputs unweighted production when multiple loans exist for the same company (#239).target_market_share()
now outputs empty named tibble if no matching region definitions can be found (#236).target_market_share
now outputs all technologies present inald
, even if they are not present indata
(#235).target_sda()
now interpolates input scenario file by year and correctly calculates target, regardless of the time-horizon ofald
(#234).Hyperlinks on the “Get Started” tab of the website now points to correct links (#222 @apmanning).
Depend on dplyr >= 0.8.5, explicitly. We commit to this version because the newer dplyr 1 is still relatively new, and represents a major change which some users initially resist.
Relax dependency on rlang, as it is mostly driven dynamically by the by our recursive dependencies. For example, dplyr 0.8.5 depends on a specific version of rlang that is more recent than the version we explicitly depended on – which suggests that being explicit about rlang is unhelpful and misleading.
New internal data
loanbook_stable
andregion_isos_stable
make regression tests more stable (#227).
r2dii.analysis 0.1.1
CRAN release: 2020-09-12
Change license to MIT.
The website’s home page now thanks founders.
target_market_share()
now works as expected when some value of the columnscenario
is missing for some value of the columnregion
. It no longer results in output columnsproduction
andtechnology_share
of type “list” (#203).The website now shows the News tab.
r2dii.analysis 0.1.0
CRAN release: 2020-09-03
target_sda()
now correctly handles differingcountry_of_domicile
inputs (#171).target_market_share()
now outputstechnology_share
(#184).join_ald_scenario()
now returns visibly with dev-magrittr (#188 @lionel-).target_market_share()
gainsweight_production
parameter (#181).target_market_share()
now correctly usesector_ald
column from inputdata
argument (#178).target_sda()
now automatically filters outald
rows where theemissions_factor
values areNA
(#173).join_ald_scenario()
now converts to lower case the values of the columnssector_ald
andtechnology
(#172).target_sda()
now aggregates inputald
bytechnology
andplant_location
prior to calculating targets (@QianFeng2020 #160).target_sda()
now errors if input data has any duplicatedid_loan
(@QianFeng2020 #164).target_sda()
gainsby_company
parameter (#155).target_market_share()
now outputs the actual aggregated corporate economy. Previously, the output would, erroneously, be normalized to the starting portfolio value (#158).target_sda()
now correctly calculates SDA targets (#153): Targets are now calculated using scenario data that is adjusted to corporate economy data. The adjusted scenario data is also output by the function along with the usual metrics. Methodology error fixed, and reflected in the code. Previously, the target was, incorrectly, calculated by multiplying the adjusted scenario. Now the scenario data is added instead.New
summarize_weighted_percent_change()
allows user to calculate a new indicator (#141).target_market_share()
no longer errors if the combination ofsector
andscenario_target_value
does not uniquely identify an observation (@georgeharris2deg #142).