What's the difference between a matrix, data frame, and tibble in R? (CC180)

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

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

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

    Awesome video! Just jumped into R recently, and these concepts have been stumping me (tidyverse vs. base R). But feeling more confident now!

  • @caseyj9
    @caseyj9 2 года назад +2

    I’ve only ever used base r but I want to learn tidyverse so I’m looking forward to the transition videos!

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

      Fantastic- thanks for watching!

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

    Great! I thought of tibbles as dataframes, but with a cuter name. Now I see they are better when wanting to inspect them. Thanks

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

      Wonderful - thanks for watching! ☺️

  • @mikep8857
    @mikep8857 2 года назад +2

    Great video. I didn't know that you can bind a vector and a data frame using cbind. I tend to use bind_cols from the tidyverse which is less forgiving.

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

      I hear you on the “less forgiving” part but I think tidyverse has a lot of that stuff to protect us from doing silly things we aren’t anticipating 🙃

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

      @@Riffomonas I agree but it's good to know that you can use cbind to avoid converting your vector into a tibble first.

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

    Another great video. Thank you Pat.

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

      Glad you all are enjoying this series 😍 thanks for watching!

  • @dgoodall6468
    @dgoodall6468 2 года назад +2

    Thanks for another great video!

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

      My pleasure - thanks for tuning in! 🤩

  • @javierhernando5063
    @javierhernando5063 2 года назад +2

    Great video! Really helpful. I've been waiting for stuff like this long time. My problems usually come from tibble format with base syntax e. g.
    t.test(x=subset(dat, group== "A")[,v[4]], y=subset(dat, group== "B")[,v[4]], paired = F)$p.value I would like to mix all the elements

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

      Lol I think you might be happier sticking with $ and using the data argument 😊

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

    this video is great

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

    Tibbles drive me nuts since I'd rather see more of the columns than it fits in the console, so I stick to data frames most of the time.

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

      Have you tried using the width argument with print to get more columns?

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

      Didn't know that was an option but I'll check it out. Thanks.

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

    y r u in a rush???

  • @monzerthejoker343
    @monzerthejoker343 4 месяца назад

    I didn't understand any thing

    • @Riffomonas
      @Riffomonas  4 месяца назад

      Sorry! If there's anything specific let me know what was confusing