Depend on R 4.1.0 (released on 2021-05-18) (#690).
The installation instructions now include r-universe (#685).
emissions_profile_any_compute_profile_ranking()
is now deprecated. This
function is now internal (#669).emissions_profile_any_compute_profile_ranking()
now handles special cases (#644 @kalashsinghal).*isic_4digit
can now have values of any length (#630
@kalashsinghal).jitter*()
is now more even (#627).summarize_range()
and jitter_range()
(#622, @AnneSchoenauer).companies_id
but still accept company_id
with a
warning (#621).profile_ranking
(#613, @AnneSchoenauer).clustered
is no longer NA
when risk_category
is NA
(#614, @AnneSchoenauer, @kalashsinghal).Get started now shows sector_profile*()
documentation (#619).
emissions_profile_any_add_values_to_categorize
to emissions_profile_any_compute_profile_ranking
(#609). The old name is retired without deprecation since it had no users.emissions_profile_any_add_values_to_categorize()
now relocates the new
columns to the left.emissions_profile*()
uses co2$values_to_categorize
if present (#605).emissions_profile_any_add_values_to_categorize()
(#602).grouped_by
are now less surprising (see related principle)
(#601). They now simply refer to the full name of the corresponding columns in
the "co2" dataset (products or inputs) passed to the emissions_profile*()
functions. For example, passing a column products$tilt_sector
now yields the
value "tilt_sector" in group_by
-- which before got cropped to "tilt_sec".*rowid
columns is now documented and is more rigorous (#516):
rowid
is now reserved. If any input dataset uses it, the result is an
error.*rowid
column now must be unique. Duplicated names now result in an
error.*rowid
columns from input tables to the
output at product level (#511).emissions_profile*()
now handles numeric values of *isic_4digit
(#494).*_at_product_level()
and *_at_company_level()
are now deprecated
(#491).xctr(data, inputs)
is now deprecated in favor or the new
emissions_profile_upstream()
(#481).xctr(data, products)
is now deprecated in favor or the new
emissions_profile()
(#481).istr()
is now deprecated in favor of the new sector_profile_upstream()
(#480).pstr()
is now deprecated in favor of the new sector_profile()
(#479).pstr()
now warns if the companies
has any semicolon ';' in sector
or
subsector
(#449).products
, activity_uuid_product_uuid
is now unique (#447).xctr()
now outputs results at both levels (#443).istr()
now outputs results at both levels (#442).pstr()
now outputs results at both levels (#441).
New unnest_product()
and unnest_company()
help get results at product and
company levels from nested outputs like the one of pstr()
.
NA
, and with no match outputs 1 row with NA
s in all columns (except companeis_id
(#436).value
s that sum 1 and no NA
for each level of grouped_by
, and each company with no match has 1 value
that is NA
in total (#434).xstr_prepare_scenario()
with duplicated scenario data now throws an error (#431). This avoids running indicators with corrupt input data and alerts that
the preparation must be fixed.istr()
is now sensitive to low_threshold
and high_threshold
(#420).xstr_scenarios
replaces istr_scenarios
and pstr_scenarios
(@kalashsinghal #413).pstr_prepare_scenario()
is now named xstr_prepare_scenario()
(#385).pstr_polish_output_at_copmany_level()
is now named xstr_polish_output_at_copmany_level()
(#383).xstr_prune_companies()
now expects the column company_id
(#380).xstr_prune_companies()
to drop rows where product info is 'NA' & sector info is duplicated (#379).istr_inputs
now includes columns required in the output (@kalashsinghal #376).In XSTR NA
s in reductions are no longer an error but handled specially (@lindadelacombaz #350).
In ISTR sample data and code now use the new structure (@kalashsinghal #353).
In ISTR default thresholds are now the same as in XCTR (@lindadelacombaz #348).
companies
has 0-rows (#340).pstr_polish_output_at_company_level()
(#327)pstr*()
(#314).type
must have some sector
and subsector
, else you
an error (#311).pstr_prepare_scenario()
now handles "weo" data correctly (@kalashsinghal #309).type
"ipr", for each company and grouped_by
, value
sums 1 (#307).grouped_by
now includes the scenario type (#306). This makes
the column grouped_by
contain all the information in scenarios
, year
, and
type
-- meaning that those columns could be removed to keep the output
simpler, without loosing information.pstr_at_product_level()
now output columns as in the google sheet template (#303).
Each company_id + grouped_by
now gets one low, medium & high risk_category
(#278).
scenario
is now named scenarios
, consistently with PSTR (#299).xstr*()
, NA
s in reductions
now trigger an error (#298).New article handling long runtime (#283)
pstr*()
gain arguments low_threshold
and high_threshold
(@kalashsinghal #273).
pstr*()
values are now expressed as proportion (@lindadelacombaz #274).
xctr_at_product_level()
now drops NA
s from unmatched products (#267).ictr*()
and pctr*()
are now retired (#264).The data is now simpler:
ictr_companies
and pctr_companies
are now retired. Instead use the new dataset companies
.
pctr_ecoinvent_co2
is now renamed to products
.
ictr_inputs
is now renamed to inputs
.
xctr*()
replace ictr*()
and pctr*()
(#256). The functions ictr*()
and pctr*()
are internal for backward compatibility but will be
retired soon.low_threshold
now default to 1/3 and high_threshold
to 2/3 (#249).co2
data (#230).*ctr_at_product_level()
now outputs clustered
and *_uuid
(#242).pctr_at_product_level()
now returns visibly (#239).companies
data (#230).high_threshold
is now computed correctly (@kalashsinghal #229).All product-level functions now output the same three columns (#228, #227):
companies_id
grouped_by
risk_category
All company-level functions now output the same four columns:
companies_id
grouped_by
risk_category
value
All top level functions now output the same first four columns (#214):
companies_id
grouped_by
risk_category
value
ictr_at_product_level()
and pctr_at_product_level()
now output company
data (#213).In both ictr()
and pctr()
the first argument is now named co2
.
New internal-ish functions in the xctr family (#207).
NA
(#205).NA
(@kalashsinghal #202).All indicators now export a single and similar top-level interface (#189). The old functions are still available but are are now considered developer-oriented and therefore not visible on the website. The output is
also more similar: The first column is always id
, the second column is always
transition_risk
, and the following column(s) provide score(s).
All indicators now output an id for each company and a score (#190).
ictr_score_companies()
now errors if inputs_co2
has NA
s (@kalashsinghal #150).
New article Get started (#152).
BREAKING CHANGES
ictr_inputs
and ictr_companies
loose non-crucial columns(@kalashsingal #117).
pctr_ecoinvent_co2
and pctr_companies
loose non-crucial columns (#116).
BUG FIXES
ictr_score_companies()
and ictr_score_companies()
now return three rows
per company regardless the number of rows in the co2 data (#122).
pctr_score_companies()
and ictr_score_companies()
now return three rows
per company (@kalashsinghal #111).
Document PCTR functions (@kalashsinghal, #104).
New ICTR functions and datasets (@kalashsinghal, #90).
pstr_plot_company()
(#84).FIX: The article pstr now shows the expected content (#52).
FIX: mvp_path()
with nonexistent path now throws an error (#51).
Document the pstr_*()
functions (@lindadelacombaz, #50)
dev: Rename helper to render_to_list()
(#43).
dev: Prune needless helpers (#42).
dev: Rename data-files related to pstr (#41).
dev: Fix CODEOWNERS.
In pstr_at_company_level()
fix missing argument companies
(#38).
dev: Address R CMD Check about undefined global variables (#37).
left_join()
.New pstr_*()
family for product sector transition risk.
New pstr_*()
family of PSTR functions.
New article "Product sector transition risk" (@lindadelacombaz, #18, #22).