Skip to content

Commit

Permalink
Merge pull request #4 from lilyclements/main
Browse files Browse the repository at this point in the history
selecting only relevant variables
  • Loading branch information
lilyclements authored Feb 7, 2024
2 parents 7b82816 + ffdc248 commit 1935340
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/map_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ map_data <- function(data, values, node_values) {
tidyr::pivot_longer(cols = c({{ values }}, {{ node_values }}),
names_to = "group",
values_to = "id") %>%
dplyr::select(c(id, group)) %>%
dplyr::arrange(group) %>%
dplyr::distinct() %>%
dplyr::mutate(id_index = row_number() - 1)
Expand Down

0 comments on commit 1935340

Please sign in to comment.