Sfoglia il codice sorgente

fixed inner join

pull/10/head
David 7 anni fa
parent
commit
bcd6fe777b
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. +4
    -1
      R/move_together.R

+ 4
- 1
R/move_together.R Vedi File

@@ -28,11 +28,14 @@ move_together <- function(lhs, rhs, type) {
x_ids <- x_ids %>% filter(!str_detect(.id_long, "^\\.header"))
y_ids <- y_ids %>% filter(!str_detect(.id_long, "^\\.header"))

# assign two combiner functions depending on the type
# one for combining the columns (col_combiner)
# one for combining the rows (row_combiner)
if (type == "full_join") {
col_combiner <- dplyr::full_join
row_combiner <- dplyr::full_join
} else if (type == "inner_join") {
col_combiner <- dplyr::inner_join
col_combiner <- dplyr::full_join
row_combiner <- dplyr::inner_join
} else if (type == "left_join") {
col_combiner <- dplyr::full_join

Loading…
Annulla
Salva