Skip to content

Commit

Permalink
squelch countrycode warnings when no currency is matched
Browse files Browse the repository at this point in the history
  • Loading branch information
cjyetman authored May 28, 2024
1 parent a37a7d2 commit 20c65ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/prepare_iss_entity_emission_intensities.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ prepare_iss_entity_emission_intensities <- function(iss_company_emissions,
factset_entity_financing_data %>%
dplyr::left_join(factset_entity_info, by = "factset_entity_id") %>%
dplyr::filter(
countrycode::countrycode(.data[["iso_country"]], "iso2c", "iso4217c") == .data[["currency"]]
countrycode::countrycode(.data[["iso_country"]], "iso2c", "iso4217c", warn = FALSE) == .data[["currency"]]
) %>%
dplyr::left_join(currencies, by = "currency") %>%
dplyr::mutate(
Expand Down

0 comments on commit 20c65ca

Please sign in to comment.