- Transfer all Transition risk code to
tiltTransitionRisk
repository (#321, #322)
- Enhance best case and worst case methodology at both product and company level (#320).
- Add article
Input and Supply Chain Analysis Model
(#309).
transition_risk_profile()
incorporates the following changes:
- Remove long format option for company level columns (#311).
- Round-off all column values to 4 decimal places (#312).
transition_risk_profile()
incorporates the following changes:
- Remove case 3 companies for the base output of tiltIndicatorAfter (#308).
- Remove
co2_footprint
on product level andco2e_avg
on company level for the webtool output (#308).
transition_risk_profile()
outputs columnscov_transition_risk
,cov_emission_profile
, andcov_sector_target
at company level (#303).
-
Product and company level columns from
transition_risk_profile()
are renamed. -
transition_risk_profile()
getsfor_webtool
parameter to provide the choice of creating webtool data (#302).
-
transition_risk_profile()
outputs columntransition_risk_NA_share
at product and company level (#300). -
transition_risk_profile()
outputs columntransition_risk_NA_total
at product level (#300).
transition_risk_profile()
andprofile_emissions()
outputs columnamount_of_distinct_products_matched
at product level (#299).
transition_risk_profile()
outputs columnsavg_reduction_targets_best_case
andavg_reduction_targets_worst_case
at company level (#297).
-
transition_risk_profile()
outputs columnsisic_4digit
,matching_certainty
,company_name
, andemissions_profile_equal_weight
at product level (#294). -
transition_risk_profile()
outputs columncompany_name
at company level (#294).
transition_risk_profile()
outputs columnsavg_profile_ranking_best_case
andavg_profile_ranking_worst_case
at company level (#293).
transition_risk_profile()
outputs columnsco2_footprint
at product level andco2_avg
at company level if option*.output_co2_footprint
is set to TRUE (#288).
-
transition_risk_profile()
outputs columnspostcode
,address
,min_headcount
, andmax_headcount
at product and company level (#281). -
transition_risk_profile()
outputs renamed columns at product level (#281):
best_case
->emissions_profile_best_case
worst_case
->emissions_profile_worst_case
best_case
->transition_risk_profile_best_case
worst_case
->transition_risk_profile_worst_case
transition_risk_profile()
can convert columnstransition_risk_category
andsector_profile
in wide format at company level (#278).
transition_risk_score
is limited between 0 and 1 (#274).
transition_risk_profile()
outputs columnstransition_risk_category_share
andtransition_risk_category
at company level (#266).
- At product level,
transition_risk_profile()
now outputs columnsbest_case
,worst_case
,amount_of_distinct_products
, andequal_weight
(#264).
- New external
transition_risk_profile()
indicator at product and company level (#260).
- Same as before. This is only to fix the odd order of versions and tags in the last few commits.
- At product level,
profile_emission*()
now outputs columnsbest_case
,worst_case
,amount_of_distinct_products
, andequal_weight
(#243).
- The columns
co2e_lower
andco2e_upper
are now calculated using correct grouping (#214).
profile_emission*()
no longer informs percent noise (#239). This was a developer facing feature that caused more trouble than benefits. Also there are better, simpler ways to achieve the same.
profile_emissions*()
at company level no longer outputs the columnsco2e_lower
andco2e_upper
(#231). Also, the company level output no longer includes the licensedmin
andmax
columns. If necessary, themin
andmax
columns can still be demanded a product level.
- New developer-oriented
toy_profile_emissions_impl_output()
, makes tests easier to write and faster to run (#228).
- Link to
profile_impl
from top-level functions (#227). This helps to discover the developer-oriented composable friends.
- The internal topic
?composable_friends
is now removed (#225). Instead you may see?profile_impl
and follow linked topics.
- The documented 'Value' of each
profile_*()
no longer refers to columns that don't exist (#221).
profile_*()
now yield objects of S3 class 'tilt_profile' (#219). This allows creating generics with specialized methods.
- New internal
profile_*impl()
(#222). This initiates an alternative developer-oriented API documented at?composable_friends
.
profile_emissions()
andprofile_emissions_upstream()
now inform a meaningful percent noise (#212). This fixes a bug where the message reported a noise of "NA%".
- New internal
score_transition_risk_and_polish()
wraps and generalizes the latest script used to format outputs before delivery (#205).
exclude_cols_then_pivot_wider()
gainsavoid_list_cols
(#206). This is a coarse, catch-all alternative to the finer grained control you get via theid_cols
oftidyr::pivot_wider()
. While it's generally best to specify the id_cols you care about, it's hard to anticipate what columns the real data might have, and some of them may introduce list-columns, duplicates, and trigger a warning. This new argument avoids all of that.
- New internal
exclude_cols_then_pivot_wider()
(#203). This is a developer-oriented function to exclude irrelevant columns and duplicates from a dataset, then pivot it to a wide format.
BREAKING CHANGE
- New column
benchmark_tr_score_avg
replacesbenchmark_tr_score
in the output at company level ofscore_transition_risk()
(@kalashsinghal #199).
- At product level,
profile_emissions()
now preserves missing benchmarks (#196).
profile_emissions()
now preserves unmatched products (#193).
- At company level
profile_emissions()
can now optionally output the columnco2_avg
(@AnneSchoenauer #186). This is the mean of theco2_footprint
for each company. This control is via internal options (see?tiltIndicatorAfter_options
).
- At product level
profile_emissions()
can now optionally output the licensed columnco2_footprint
(#184). This control is via internal options (see?tiltIndicatorAfter_options
).
profile_emissions()
andprofile_emissions_upstream()
now inform the amount of noise added on average to theco2*
columns. They now also allow controlling the amount of noise, and demanding the licensedmin
andmax
columns that are required to examine such noise before delivering data (#163). This control is via internal options (see?tiltIndicatorAfter_options
).
NEW FUNCTIONS
- New function
score_transition_risk()
(@kalashsinghal #152).
NEW COLUMNS
- New columns
profile_ranking_avg
andreduction_targets_avg
in the output at company level ofprofile_emissions*()
andprofile_sector*()
, respectively (@kalashsinghal #164). - New columns
co2e_lower
andco2e_upper
in the output ofprofile_emissions()
andprofile_emissions_upstream()
-- both at product and company levels. This columns include some noise that protects the privacy of the licensed CO2 values (@kalashsinghal #155). - New column
ei_geography
in the output ofprofile_emissions()
andprofile_sector()
at product level (@kalashsinghal #148). - New columns
ei_geography
andei_input_geography
in the output ofprofile_emissions_upstream()
andprofile_sector_upstream()
at product level (@kalashsinghal #148). - The column
extra_rowid
was removed from all output files (@kalashsinghal #141).
Renamed Exported Internal Functions (@kalashsinghal #157)
prepare_pctr_product
->polish_emissions_profile_product
prepare_pctr_company
->polish_emissions_profile_company
prepare_ictr_product
->polish_emissions_profile_upstream_product
prepare_ictr_company
->polish_emissions_profile_upstream_company
prepare_pstr_product
->polish_sector_profile_product
prepare_pstr_company
->polish_sector_profile_company
prepare_istr_product
->polish_sector_profile_upstream_product
prepare_istr_company
->polish_sector_profile_upstream_company
The sample input and output datasets are retired for these functions after we
use toy data from tiltToyData
. The un-exported functions and variables which
are used in above exported functions are also renamed by using this new
nomenclature (@kalashsinghal #157):
pctr
->emissions_profile
ictr
->emissions_profile_upstream
pstr
->sector_profile
istr
->sector_profile_upstream
Retired datasets that have been deprecated for 8 weeks or more (@kalashsinghal #157):
isic_tilt_mapper
ep_companies
ecoinvent_activities
ecoinvent_inputs
matches_mapper
isic_name
- Use license GPLv3 (#140).
In the output of all profile_*()
functions these columns now have new names (#118):
PCTR_risk_category
->emission_profile
PCTR_share
->emission_profile_share
ICTR_risk_category
->emission_usptream_profile
ICTR_share
->emission_usptream_profile_share
PSTR_risk_category
->sector_profile
PSTR_share
->sector_profile_share
ISTR_risk_category
->sector_profile_upstream
ISTR_share
->sector_profile_upstream_share
sector
->sector_scenario
subsector
->subsector_scenario
profile_ranking
->reduction_targets
The following toy datasets are now deprecated in favor of equivalent data from tiltToyData (#132).
ecoinvent_activities
ecoinvent_inputs
ep_companies
isic_name
matches_mapper
- Irrelevant columns in
europages_companies
andecoinvent_inputs
are no longer passed to the output (@kalashsinghal #105).
The following functions are now deprecated in favor of the equivalent functions
of the new API (#96, see also ?tiltIndicator::rename
).
prepare_ictr_company()
.prepare_ictr_product()
.prepare_istr_company()
.prepare_istr_product()
.prepare_pctr_company()
.prepare_pctr_product()
.prepare_pstr_company()
.prepare_pstr_product()
.
New arguments, new columns, and rename columns about *isic_4digit*
(#86
@kalashsinghal):
-
The functions
profile_sector()
andprofile_sector_upstream()
gain the argumentisic_tilt
. -
In the output of
profile_emissions()
andprofile_emissions_upstream()
at product level the columnsisic_name
andinput_isic_name
are now renamed toisic_4digit_name
andinput_isic_4digit_name
, respectively. -
The output of
profile_sector()
andprofile_sector_upstream()
at product level gains the columnisic_4digit_name
andinput_isic_4digit_name
, respectively.
- The argument
ecoinvent_inputs
ofprofile_emissions_upstream()
andprofile_sector_upstream()
is now relocated next to other ecoinvent datasets, and before the mappers (#91). This gives allprofile*()
functions a more consistent structure.
- Reexport
tiltIndicator::unest_product()
andtiltIndicator::unnest_company()
(#88).
- New API wraps titlIndicator and outputs columns matching
*isic*
and*sector*
(#78).
- Values of
*isic_4digit
are no longer padded to 4 digits (#81 @kalashsinghal).
- Remove article showing how to enhance results (TiltDevProjectMGMT#126). This duplicates an article in tiltIndicator.
- Same as previous version.
- Retire
pstr_company
andistr_company
as we now have more accurate toy datasets (#55).
prepare_istr_company()
now accepts the output oftiltIndicator::sector_profile_upstream()
'as is' (#54).
- Retire internal functions from the public API (#53):
prepare_inter_pctr_product()
.prepare_inter_pstr_product()
.prepare_matches_mapper()
.
prepare_pstr_company()
now accepts the output oftiltIndicator::sector_profile()
'as is' (#50).
prepare_pctr_product()
No longer errors with "Column unit doesn't exist" (#26).
- Emmisions functions no longer error if the column
*isic_4digit
is numeric (#42).
- New article showing how to enhance results (TiltDevProjectMGMT#126).