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 www.riffomonas.org/code_club/....
The data were generated in our Kozich et al. 2013 paper (doi.org/10.1128/AEM.01043-13) using samples from the Schloss et al. 2012 paper (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 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 riffomonas.org/workshops/
You can also find complete tutorials for learning R with the tidyverse using...
Microbial ecology data: www.riffomonas.org/minimalR/
General data: 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
Негізгі бет Ғылым және технология What's the difference between a matrix, data frame, and tibble in R? (CC180)
Пікірлер: 22