Summary and Schedule
This is a new lesson built with The Carpentries Workbench.
| Setup Instructions | Download files required for the lesson | |
| Duration: 00h 00m | Â 1. Introduction to RStudio | How do I use the RStudio graphical user interface? |
| Duration: 00h 15m | Â 2. Data Types and Structures |
What are the different data types in R? What are the different data structures in R? How do I access data within the various data structures? |
| Duration: 01h 00m | Â 3. Analysing Patient Data |
How do I read data into R? How do I assign variables? What is a data frame? How do I access subsets of a data frame? How do I calculate simple statistics like mean and median? Where can I get help? How can I plot my data? |
| Duration: 01h 45m | Â 4. Addressing Data | What are the different methods for accessing parts of a data frame? |
| Duration: 02h 05m | Â 5. Reading and Writing CSV Files |
How do I read data from a CSV file into R? How do I write data to a CSV file? |
| Duration: 02h 35m | Â 6. Understanding Factors |
How is categorical data represented in R? How do I work with factors? |
| Duration: 02h 55m | Â 7. Creating Functions |
How do I make a function? How can I test my functions? How should I document my code? |
| Duration: 03h 25m | Â 8. Making Choices |
How do I make choices using if and else
statements?How do I compare values? How do I save my plots to a PDF file? |
| Duration: 03h 55m | Â 9. Analysing Multiple Data Sets |
How can I do the same thing to multiple data sets? How do I write a for loop?
|
| Duration: 04h 25m | 10. Loops in R |
How can I do the same thing multiple times more efficiently in
R? What is vectorization? Should I use a loop or an apply statement?
|
| Duration: 04h 55m | 11. Best Practices for Writing R Code | How can I write R code that other people can understand and use? |
| Duration: 05h 05m | Finish |
The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.
This workshop teaches the fundamental skills needed to work with R for data analysis. You will learn how to:
- Navigate RStudio and understand the R environment
- Read, manipulate, and write data files
- Understand R data types and structures
- Create functions to automate repetitive tasks
- Use conditional statements and loops for data analysis
- Follow best practices for writing reproducible R code
No prior programming experience is required.
Data Sets
Download the inflammation dataset:
Download inflammation-data.zip.
Unzip the file to your Desktop
The folder contains CSV files with patient inflammation data used throughout the lessons
Optional : Quick reference guide
Software Setup
Details
This workshop uses R (the programming language) and RStudio (an integrated development environment that makes R easier to use). You will need to install both programs on your computer.