Logo

The Data Daily

Learning about data structures in R | R-bloggers

Learning about data structures in R | R-bloggers

Learning about data structures in R
Posted on March 23, 2022 by R on R (for ecology) in R bloggers | 0 Comments
[This article was first published on R on R (for ecology) , and kindly contributed to R-bloggers ]. (You can report issue about the content on this page here )
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Share Tweet
Last week, we posted a tutorial on the different types of data in R ( check it out here ). In this tutorial, we’re going to talk about the different structures that R provides to help you organize your data.
Data structures go hand-in-hand with data types, as both of these form the foundation for the work we do in R. You may have already worked with many of the structures that we describe in this blog post, but I wanted to take the time to describe them in depth and show you how they relate to or are different from one another.
Let’s jump in!
R provides several data structures that we commonly use as ecologists:
Vectors
4a. Tibbles
Vectors
Vectors are one of the most common data structures. You can create a vector using the function c(). c() combines all of its arguments into a vector like so:
# Create a vector vec

Images Powered by Shutterstock