David Robinson - Ten Tremendous Tricks in the Tidyverse

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

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

  • @LCotgrove
    @LCotgrove 4 ปีที่แล้ว +13

    I thought I was having problems with extract() but turns out magrittr also has a function called extract. Solved by tidyr::extract
    (Great video btw)

  • @hemnfarhad8551
    @hemnfarhad8551 4 ปีที่แล้ว +10

    It is so lovely to see a video with no down votes. April 17, 2020

    • @GaetanJanssens
      @GaetanJanssens 4 ปีที่แล้ว +7

      Your comment inspired rebellion (not me).

  • @PatrickBateman12420
    @PatrickBateman12420 4 ปีที่แล้ว +1

    13:26 is especially great. "Sometimes, when data is on different magnitudes, it's hard to reveal a trend on a regular scale ..."

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

    Amazingly insightful!

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

    Hope to get good as him some day! I'm a junior at Uni as a Stats major.

  • @RoxanaNoe
    @RoxanaNoe 4 ปีที่แล้ว

    This video is awesome!

  • @joel09878
    @joel09878 4 ปีที่แล้ว

    Great talk, thanks! Really useful. Regarding tip #5 ("my favourite plot"); I was trying to figure out why coord_flip() is preferred to just swapping over x and y variables. e.g. ggplot(diamonds, aes(price, cut)) +
    geom_boxplot(). I read that doing that can put things in an unexpected order with some types of chart, and coord_flip() generally behaves better. It's never happened to me yet though.

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

      This talk came out before flipping the x/y axis in barplots and boxplots was possible! As of today, you're absolutely right that flipping the x and y variables is the preferred solution :D

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

    This man codes in R like he is on a speedrun. He is very fluent!!

  • @jamesfoster1441
    @jamesfoster1441 4 ปีที่แล้ว

    This is a great video. I learned a lot. I think there is an error in David's code at 10:41. He put a pipe operator after the ggplot instead of a plus (+) sign.

  • @DM-py7pj
    @DM-py7pj 3 ปีที่แล้ว

    Where possible please include links to datasets as I find it helpful to be able to play around with the code you show; ideally with the source datasets.

  • @afiqyahya3398
    @afiqyahya3398 4 ปีที่แล้ว +2

    Can anyone explain the symbol '%/%'. Is that from maggritr?

    • @borismakena6327
      @borismakena6327 4 ปีที่แล้ว +2

      Its not magrittr. Its a base function. in "x %/% y". It performs "x/y" and returns the integer part, no rounding up or down. It is equivalent to "floor(x/y)"

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

      This is called Euclidean division - or division with remainder. When you type "1980:1989 %/% 10" it will return "198" ten times and discard the remainders (0,1,2,3,4, etc.) and because he multiplied the result with 10 he got the decades "1980" ten times.

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

      %% and %/% are base operators in R! %% indicates x mod y and %/% indicates integer division. :)

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

    Good info, lousy camera work

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

    Respect!