Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the code breaks at a line where camd_eia_gen_crosswalk is executed #38

Open
Mihretu opened this issue Oct 4, 2023 · 1 comment
Open

Comments

@Mihretu
Copy link

Mihretu commented Oct 4, 2023

generator_step_string <- "3_1_Generator (generators) match on plant and gen IDs Step 1"

camd_eia_gen_crosswalk <-
get_manual_matches(
unit_manual_matches,
unit_manual_excluded,
camd_unit,
eia_generator,
eia_by = c("EIA_PLANT_ID", "EIA_GENERATOR_ID")
)

camd_eia_gen_crosswalk <- camd_eia_gen_crosswalk %>%
bind_rows(
match_camd_eia_units(
get_camd_unmatched(camd_unit, camd_eia_gen_crosswalk),
get_unmatched(eia_generator, camd_eia_gen_crosswalk, by = c("EIA_PLANT_ID", "EIA_GENERATOR_ID")),
by = plant_generator_match,
str_glue("{generator_step_string}a: Exact match")
)
)

@Mihretu
Copy link
Author

Mihretu commented Oct 4, 2023

error after executing camd_eia_gen_crosswalk is "
Error in missing(prev_matches) || is.na(prev_matches) :
'length = 6728' in coercion to 'logical(1)'"

and

Warning: Warning:
1 manual_matches do not match with CAMD

A tibble: 1 × 6

CAMD_PLANT_ID CAMD_UNIT_ID CAMD_GENERATOR_ID EIA_PLANT_ID EIA_BOILER_ID EIA_GENERATOR_ID

1 56032 0001 1 56032 NA 0001 Warning:
Warning:
1 manual_matches do not match with EIA

A tibble: 1 × 6

CAMD_PLANT_ID CAMD_UNIT_ID CAMD_GENERATOR_ID EIA_PLANT_ID EIA_BOILER_ID EIA_GENERATOR_ID

1 56032 0001 1 56032 NA 0001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant