ソースを参照

fixed inner join

pull/10/head
David 7年前
コミット
bcd6fe777b
1個のファイルの変更4行の追加1行の削除
  1. +4
    -1
      R/move_together.R

+ 4
- 1
R/move_together.R ファイルの表示

x_ids <- x_ids %>% filter(!str_detect(.id_long, "^\\.header")) x_ids <- x_ids %>% filter(!str_detect(.id_long, "^\\.header"))
y_ids <- y_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") { if (type == "full_join") {
col_combiner <- dplyr::full_join col_combiner <- dplyr::full_join
row_combiner <- dplyr::full_join row_combiner <- dplyr::full_join
} else if (type == "inner_join") { } else if (type == "inner_join") {
col_combiner <- dplyr::inner_join
col_combiner <- dplyr::full_join
row_combiner <- dplyr::inner_join row_combiner <- dplyr::inner_join
} else if (type == "left_join") { } else if (type == "left_join") {
col_combiner <- dplyr::full_join col_combiner <- dplyr::full_join

読み込み中…
キャンセル
保存