Skip to content

Commit

Permalink
change filtering to keep companies where plan_tech_share is 0 (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine-Lalechere authored Apr 26, 2024
1 parent 6876f5d commit de3e1f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/prep_company_bubble.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ prep_company_bubble <-
mutate(y = .data$plan_buildout / .data$scen_buildout) %>%
filter(.data$green) %>%
select(-"plan_buildout", -"scen_buildout", -"green") %>%
filter(.data$plan_tech_share != 0) %>%
filter(!is.na(.data$plan_tech_share)) %>%
rowwise() %>%
mutate(y = max(.data$y, 0, na.rm = TRUE)) %>%
ungroup() %>%
Expand Down Expand Up @@ -81,7 +81,7 @@ prep_company_bubble <-
mutate(y = .data$plan_buildout / .data$scen_buildout) %>%
filter(.data$green) %>%
select(-"plan_buildout", -"scen_buildout", -"green") %>%
filter(.data$plan_tech_share != 0) %>%
filter(!is.na(.data$plan_tech_share)) %>%
rowwise() %>%
mutate(y = max(.data$y, 0, na.rm = TRUE)) %>%
ungroup() %>%
Expand Down

0 comments on commit de3e1f8

Please sign in to comment.