選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

30 行
773B

  1. source(here::here("R/00_base_join.R"))
  2. ij_joined_df <- inner_join(x, y, "id")
  3. ij_joined_df <- bind_rows(
  4. proc_data(ij_joined_df, "x"),
  5. proc_data(ij_joined_df, "y")
  6. ) %>%
  7. filter(!(label == "x" & .id == "y") & !(label == "y" & .id == "x")) %>%
  8. mutate(frame = 2, .x = .x + 1)
  9. ij <- bind_rows(
  10. initial_join_dfs,
  11. ij_joined_df
  12. ) %>%
  13. mutate(removed = value %in% c("3", "4", "x3", "y4"),
  14. removed = as.integer(removed)) %>%
  15. arrange(desc(frame), removed, desc(.id)) %>%
  16. plot_data("inner_join(x, y)") %>%
  17. animate_plot()
  18. ij <- animate(ij)
  19. anim_save(here::here("images", "inner-join.gif"), ij)
  20. ij_g <- inner_join(x, y, by = "id") %>%
  21. proc_data() %>%
  22. mutate(.x = .x + 1) %>%
  23. plot_data_join("inner_join(x, y)")
  24. save_static_plot(ij_g, "inner-join")