Tidying data in R with pivot_wider()

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • Let's learn how to use the pivot_wider() command from R's {dplyr} package to deal with observations that are spread across multiple rows of a data frame. Your life is about to get better!
    If this vid helps you, please help me a tiny bit by mashing that 'like' button. For more #rstats joy, crush that 'subscribe' button!

Комментарии • 22

  • @EquitableEquations
    @EquitableEquations  Год назад

    You can find materials from this vid (and others) at github.com/equitable-equations/youtube

    • @TheJq32
      @TheJq32 Год назад

      Couldn't find the blocks dataset in the link?

    • @EquitableEquations
      @EquitableEquations  Год назад

      @@TheJq32 It's included in the GLMsData package. The script on GitHub includes code to access the set. Enjoy!

  • @jennanancarrow3007
    @jennanancarrow3007 2 года назад +4

    I spent hours stuck on a question for an assignment. I was completely in tears, and made a desperate pilgrimage to RUclips... and learned exactly how to do the thing in 5 minutes. THANK YOU!!!

  • @randomrants8294
    @randomrants8294 2 года назад +1

    Very well explained without any clutter

  • @sergiochavezlazo5362
    @sergiochavezlazo5362 2 года назад

    This is a great video! Thank you very much !

  • @nicolafierro1
    @nicolafierro1 9 месяцев назад

    This was hella useful
    Thanks !!

  • @ivanalexandrov8752
    @ivanalexandrov8752 2 года назад

    Thank you a lot! I understood it perfectly

  • @oscarrosalescorzo
    @oscarrosalescorzo 2 года назад +1

    Thanks!

  • @xiyaluo6891
    @xiyaluo6891 2 года назад +1

    Thanks

  • @romanvasiura6705
    @romanvasiura6705 Год назад

    Thank you!

  • @FlurinaB
    @FlurinaB Год назад +1

    Thank you so much for this helpful video!! May I ask: After having converted the blocks dataframe into wide format: If i wanted to calculate the mean for time and for number of trial 1 and trial 2, how would that work?

    • @EquitableEquations
      @EquitableEquations  Год назад

      Hi! It's actually more natural to do those calculations before pivoting. Group_by() and summarize() are built for this!
      ruclips.net/video/owkZgyeNXSg/видео.html

  • @chitrabalu8280
    @chitrabalu8280 2 года назад

    Thanks for this video.

  • @OlawaleQuadriOgunsola
    @OlawaleQuadriOgunsola 8 месяцев назад

    Pivot_wider and _longer are in the tidyr package, not dplyr.

  • @CanDoSo_org
    @CanDoSo_org Год назад

    Thanks, Andrew. It would be more helpful if you can attach the data you used.

  • @vincenzo4259
    @vincenzo4259 2 года назад +1

    Thanks