Kaynağa Gözat

fixed inner join

pull/10/head
David 7 yıl önce
ebeveyn
işleme
bcd6fe777b
1 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  1. +4
    -1
      R/move_together.R

+ 4
- 1
R/move_together.R Dosyayı Görüntüle

@@ -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

Yükleniyor…
İptal
Kaydet