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

Riffomonas Project January 20, 2022
Video Thumbnail
Riffomonas Project Logo

Riffomonas Project

View Channel

About

I'm Pat Schloss! I produce videos about how to use data science tools to answer questions about the world around me. I believe that anyone can answer their own questions. Do you?! I'd love to learn more about the world around you. Share the questions you would like to answer and we can take them on together!

Video Description

Do you know when to use a matrix, data frame, or tibble in R? Do you know how to use each or even what the differences are between these three types of variables? In this episode of Code Club, Pat will show you how to convert the same data between the different types using base R functions. Finally, he'll bring back the tidyverse to show why he prefers to work with data frames as tibbles. This is part of a series of videos demonstrating how to functions from base R to make these data compatible with tools from the tidyverse You can find my blog post for this episode at https://www.riffomonas.org/code_club/2022-01-20-matrices-df-tibbles. The data were generated in our Kozich et al. 2013 paper (http://doi.org/10.1128/AEM.01043-13) using samples from the Schloss et al. 2012 paper (http://doi.org/10.4161/gmic.21008). #baseR #tibbles #Rstats Want more practice on the concepts covered in Code Club? You can sign up for my weekly newsletter at https://shop.riffomonas.org/youtube to get practice problems, tips, and insights. If you're interested in taking an upcoming 3 day R workshop be sure to check out our schedule at https://riffomonas.org/workshops/ You can also find complete tutorials for learning R with the tidyverse using... Microbial ecology data: https://www.riffomonas.org/minimalR/ General data: https://www.riffomonas.org/generalR/ 0:00 Matrices, data frames, and tibbles what's the difference? 0:50 Working with R's matrix variables 2:26 Working with R's distance matrix variables 4:55 Working with R's data frame variables 13:16 Working with R/tidyverse's tibble variables

You May Also Like