Using dplyr's join functions in R to filter and merge data frames (CC164)

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ธ.ค. 2024

ความคิดเห็น • 28

  • @SoraidaGarcia-e9x
    @SoraidaGarcia-e9x 8 หลายเดือนก่อน +1

    I have been trying to join my data for the last 4 days and finally! Thank you! I have been starting from the way beginning of your videos from 3 years ago. Thank you for sharing and being so detailed and adding extra functions and ideas that someone else may need to use.

    • @Riffomonas
      @Riffomonas  8 หลายเดือนก่อน

      Im so glad to hear they’ve been helpful!

  • @timmytesla9655
    @timmytesla9655 2 ปีที่แล้ว +1

    Super useful explanation. The Anti-join function here is easier than that in SQL. Thanks for the video.

    • @Riffomonas
      @Riffomonas  2 ปีที่แล้ว +1

      My pleasure! Thanks for watching Timmy

  • @peteralfred7006
    @peteralfred7006 3 ปีที่แล้ว +2

    Hey Pat I am lost on the way. I want to know where did you come up with the ipsos dataset? I followed the link, I was totally lost on the way.

    • @Riffomonas
      @Riffomonas  3 ปีที่แล้ว +1

      Hi Peter - I'm sorry the link above wasn't working but it is now. You can find it in the original video from this series (th-cam.com/video/qaksmQabMUI/w-d-xo.html) or on the github repository at raw.githubusercontent.com/riffomonas/vaccination_attitudes/main/august_october_2020.csv

  • @sohilausamarabie9631
    @sohilausamarabie9631 2 ปีที่แล้ว +1

    Amazing explanation! Thank you!!

    • @Riffomonas
      @Riffomonas  2 ปีที่แล้ว

      Thanks for watching Sohila! 🤓

  • @jamesleleji6984
    @jamesleleji6984 ปีที่แล้ว

    How do you combine two data frames with different column names with the union function

  • @DanJohanssonJLB
    @DanJohanssonJLB 3 ปีที่แล้ว +1

    pat i love hadley so much for making my hard learned SQL skills relevant again by bringing them into R. As you mentioned, i also like to be explicit and always use the "by" argument, but this is also why i always use left_join. I feel like inner_join hides missing records from me and I want to know things are missing so I can handle those missing entries right away. Obviously you could look for missing data further along in your code but i'd rather just deal with it now. maybe there's a better way that I'm not aware of....

    • @Riffomonas
      @Riffomonas  3 ปีที่แล้ว

      Hi Daniel - thanks for watching and writing. I *love* the joins. I get a lot out of seeing how other people use them

  • @hansmeiser6078
    @hansmeiser6078 3 ปีที่แล้ว +1

    What is the difference between merge(all=TRUE) and full_join()?

    • @Riffomonas
      @Riffomonas  3 ปีที่แล้ว +1

      The *_join functions are the same functionality as provided by merge, but with a cleaner syntax

  • @niceday2015
    @niceday2015 ปีที่แล้ว

    Always great.

  • @ieliemielio
    @ieliemielio 2 ปีที่แล้ว +1

    The joins are also the way to mimic Excel’s much-loved VLOOKUP function

    • @Riffomonas
      @Riffomonas  2 ปีที่แล้ว

      I feel like I need to do a “Pat relearns Excel” series 😂

  • @j.knetsch3413
    @j.knetsch3413 9 หลายเดือนก่อน

    omg thank you!

  • @haraldurkarlsson1147
    @haraldurkarlsson1147 ปีที่แล้ว

    Would location %in% c(“Australia”, “Brazil”, …) not have worked here? I guess that is mute since you filter with a join later but still good to know that there is a short-cut.

    • @Riffomonas
      @Riffomonas  9 หลายเดือนก่อน

      Both would work

  • @russtin1
    @russtin1 3 ปีที่แล้ว +1

    I remember really struggling to get merge to perform a left_join in my pre-tidyverse days

  • @hansmeiser6078
    @hansmeiser6078 3 ปีที่แล้ว +1

    Cool.

  • @johnschloss694
    @johnschloss694 3 ปีที่แล้ว +1

    Cool video

  • @lichaccakaven146
    @lichaccakaven146 3 ปีที่แล้ว +1

    超喜欢你的讲解!!^_^

  • @cristianjaviermena6955
    @cristianjaviermena6955 10 หลายเดือนก่อน

    goatttttt

  • @ЕрнурБалтабек-ы8п
    @ЕрнурБалтабек-ы8п หลายเดือนก่อน

    Please speak Russian