Skip to content

Commit

Permalink
Consider column name passed as argument
Browse files Browse the repository at this point in the history
  • Loading branch information
hsonne committed Sep 5, 2023
1 parent fb57971 commit 3642a7b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions R/data_aggregation.R
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,13 @@ create_pivot_list <- function(
selected_lci_method <- lci_methods[i]

processes <- data.frame(
lci_method = selected_lci_method,
METHOD = selected_lci_method,
process = unique(kwb.utils::selectColumns(pivot_data, "process")),
stringsAsFactors = FALSE
)
) %>%
kwb.utils::renameColumns(list(
METHOD = method_col
))

tmp_data <- pivot_data[method_vector == selected_lci_method, ] %>%
dplyr::right_join(processes) %>%
Expand Down

0 comments on commit 3642a7b

Please sign in to comment.