Input and Supply Chain Analysis Model
(#309).transition_risk_profile()
incorporates the following changes:transition_risk_profile()
incorporates the following changes:co2_footprint
on product level and co2e_avg
on company level
for the webtool output (#308).transition_risk_profile()
outputs columns cov_transition_risk
,
cov_emission_profile
, and cov_sector_target
at company level (#303).Product and company level columns from transition_risk_profile()
are renamed.
transition_risk_profile()
gets for_webtool
parameter to provide the choice
of creating webtool data (#302).
transition_risk_profile()
outputs column transition_risk_NA_share
at
product and company level (#300).
transition_risk_profile()
outputs column transition_risk_NA_total
at
product level (#300).
transition_risk_profile()
and profile_emissions()
outputs column
amount_of_distinct_products_matched
at product level (#299).transition_risk_profile()
outputs columns avg_reduction_targets_best_case
and avg_reduction_targets_worst_case
at company level (#297).transition_risk_profile()
outputs columns isic_4digit
, matching_certainty
,
company_name
, and emissions_profile_equal_weight
at product level (#294).
transition_risk_profile()
outputs column company_name
at company level (#294).
transition_risk_profile()
outputs columns avg_profile_ranking_best_case
and avg_profile_ranking_worst_case
at company level (#293).transition_risk_profile()
outputs columns co2_footprint
at product level
and co2_avg
at company level if option *.output_co2_footprint
is set to
TRUE (#288).transition_risk_profile()
outputs columns postcode
, address
,
min_headcount
, and max_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 columns transition_risk_category
and sector_profile
in wide format at company level (#278).transition_risk_score
is limited between 0 and 1 (#274).transition_risk_profile()
outputs columns transition_risk_category_share
and transition_risk_category
at company level (#266).transition_risk_profile()
now outputs columns best_case
,
worst_case
, amount_of_distinct_products
, and equal_weight
(#264).transition_risk_profile()
indicator at product and company
level (#260).profile_emission*()
now outputs columns best_case
,
worst_case
, amount_of_distinct_products
, and equal_weight
(#243).co2e_lower
and co2e_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 columns
co2e_lower
and co2e_upper
(#231). Also, the company level output no longer
includes the licensed min
and max
columns. If necessary, the min
and max
columns can still be demanded a product level.toy_profile_emissions_impl_output()
, makes tests easier
to write and faster to run (#228).profile_impl
from top-level functions (#227). This helps to discover
the developer-oriented composable friends.?composable_friends
is now removed (#225). Instead you may
see ?profile_impl
and follow linked topics.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.profile_*impl()
(#222). This initiates an alternative
developer-oriented API documented at ?composable_friends
.profile_emissions()
and profile_emissions_upstream()
now inform a meaningful
percent noise (#212). This fixes a bug where the message reported a noise of
"NA%".score_transition_risk_and_polish()
wraps and generalizes the
latest script used to format outputs before delivery (#205).exclude_cols_then_pivot_wider()
gains avoid_list_cols
(#206). This is a
coarse, catch-all alternative to the finer grained control you get via the
id_cols
of tidyr::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.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
benchmark_tr_score_avg
replaces benchmark_tr_score
in the output
at company level of score_transition_risk()
(@kalashsinghal #199).profile_emissions()
now preserves missing benchmarks (#196).profile_emissions()
now preserves unmatched products (#193).profile_emissions()
can now optionally output the column
co2_avg
(@AnneSchoenauer #186). This is the mean of the co2_footprint
for
each company. This control is via internal options (see
?tiltIndicatorAfter_options
).profile_emissions()
can now optionally output the licensed
column co2_footprint
(#184). This control is via internal options (see
?tiltIndicatorAfter_options
).profile_emissions()
and profile_emissions_upstream()
now inform the amount
of noise added on average to the co2*
columns. They now also allow controlling
the amount of noise, and demanding the licensed min
and max
columns that are
required to examine such noise before delivering data (#163). This control is
via internal options (see ?tiltIndicatorAfter_options
).NEW FUNCTIONS
score_transition_risk()
(@kalashsinghal #152).NEW COLUMNS
profile_ranking_avg
and reduction_targets_avg
in the output at
company level of profile_emissions*()
and profile_sector*()
, respectively
(@kalashsinghal #164).co2e_lower
and co2e_upper
in the output of profile_emissions()
and profile_emissions_upstream()
-- both at product and company levels. This
columns include some noise that protects the privacy of the licensed CO2 values
(@kalashsinghal #155).ei_geography
in the output of profile_emissions()
and profile_sector()
at product level (@kalashsinghal #148).ei_geography
and ei_input_geography
in the output of
profile_emissions_upstream()
and profile_sector_upstream()
at product
level (@kalashsinghal #148).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
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
europages_companies
and ecoinvent_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()
and profile_sector_upstream()
gain the
argument isic_tilt
.
In the output of profile_emissions()
and profile_emissions_upstream()
at
product level the columns isic_name
and input_isic_name
are now renamed to
isic_4digit_name
and input_isic_4digit_name
, respectively.
The output of profile_sector()
and profile_sector_upstream()
at product
level gains the column isic_4digit_name
and input_isic_4digit_name
,
respectively.
ecoinvent_inputs
of profile_emissions_upstream()
and
profile_sector_upstream()
is now relocated next to other ecoinvent datasets,
and before the mappers (#91). This gives all profile*()
functions a more
consistent structure.tiltIndicator::unest_product()
and tiltIndicator::unnest_company()
(#88).*isic*
and *sector*
(#78).*isic_4digit
are no longer padded to 4 digits (#81 @kalashsinghal).pstr_company
and istr_company
as we now have more accurate toy datasets (#55).prepare_istr_company()
now accepts the output of tiltIndicator::sector_profile_upstream()
'as is' (#54).prepare_inter_pctr_product()
.prepare_inter_pstr_product()
.prepare_matches_mapper()
.prepare_pstr_company()
now accepts the output of tiltIndicator::sector_profile()
'as is' (#50).prepare_pctr_product()
No longer errors with "Column unit doesn't exist" (#26).*isic_4digit
is numeric (#42).