Basic Data Structures in R
Content for Wednesday, August 24, 2022
Today we’ll focus on how R organizes data and how you can managed and manipulate data in R. Readings are designed to give you more information how R conceptualizes data and how various rules and conventions affect your ability to access and manipulate data.
Readings
Chapter 3 in Douglas et al., An Introduction to R - provides another intro to R that’s been updated and is an open-source book.
Writing the perfect question - a blogpost by Jon Skeet that describes the general etiquette for asking coding questions that are likely to get answered.
Reprex Do’s and Don’ts - provides an overview of the components of a reproducible example and the use of the
reprexpackage to generate them.
Objectives
By the end of today you should:
Be able to distinguish the major datatypes used in
Rand deploy functions to determine the data type of a given object.Be able to subset and manipulate data using base
Rand thetidyverseUnderstand the key elements of getting help with coding errors
Slides
The slides for today’s lesson are available online as an HTML file. Use the buttons below to open the slides either as an interactive website or as a static PDF (for printing or storing for later). You can also click in the slides below and navigate through them with your left and right arrow keys.
View all slides in new window Download PDF of all slides