Skip to main content
HomeR

Course

Reporting with R Markdown

IntermediateSkill Level
4.7+
303 reviews
Updated 03/2022
R Markdown is an easy-to-use formatting language for authoring dynamic reports from R code.
Start Course for Free
RReporting4 hr14 videos49 Exercises4,150 XP45,263Statement of Accomplishment

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.

Loved by learners at thousands of companies

Group

Training 2 or more people?

Try DataCamp for Business

Course Description

R Markdown is an easy to use formatting language you can use to reveal insights from data and author your findings as a PDF, HTML file, or Shiny app. In this course, you'll learn how to create and modify each element of a Markdown file, including the code, text, and metadata. You'll analyze data with dplyr, create visualizations with ggplot2, and author your analyses and plots as reports. You’ll gain hands-on experience of building reports as you work with real-world data from the International Finance Corporation (IFC)—learning how to efficiently organize reports using code chunk options, create lists and tables, and include a table of contents. By the end of the course, you'll have the skills you need to add your brand’s fonts and colors using parameters and Cascading Style Sheets (CSS), to make your reports stand out.

Prerequisites

Introduction to the Tidyverse
1

Getting Started with R Markdown

In this chapter, you'll learn about the three components of a Markdown file: the code, the text, and the metadata. You'll also learn to add and modify each of these elements to your own reports, as you create your first Markdown files.
Start Chapter
2

Adding Analyses and Visualizations

3

Improving the Report

Now that you've learned how to add, label, and modify code chunks, you'll learn about code chunk options. You can use these to determine whether the code and results appear in the knit report. You'll also discover how to create lists and tables to include in your report.
Start Chapter
4

Customizing the Report

Reporting with R Markdown
Course
Complete

Earn Statement of Accomplishment

Add this credential to your LinkedIn profile, resume, or CV
Share it on social media and in your performance review
Enroll Now

Don’t just take our word for it

*4.7
from 303 reviews
80%
17%
3%
0%
0%
  • Artur
    8 hours ago

  • Eddie
    9 hours ago

  • Vanesa
    3 days ago

  • Miquel
    last week

  • Tianlin
    2 weeks ago

  • Danish
    2 weeks ago

Artur

Eddie

Vanesa

FAQs

What output formats can I create with R Markdown in this course?

You will learn to produce reports as PDF and HTML files. The course also mentions Shiny apps as a possible output format for R Markdown documents.

What dataset is used throughout the course?

You will work with real-world data from the International Finance Corporation to build and customize reports using dplyr for analysis and ggplot2 for visualizations.

Does the course cover how to brand reports with custom styles?

Yes. The final chapter teaches you to add custom fonts and colors using CSS files in the YAML header and efficiently create new reports from templates using parameters.

What are code chunk options and why do they matter?

Code chunk options let you control whether code and results appear in your final report. Chapter 3 covers these options along with creating lists and tables.

What prior R knowledge is needed?

You need to have completed Introduction to the Tidyverse. This gives you the dplyr and ggplot2 skills used throughout the course for data analysis and visualization.

Join over 19 million learners and start Reporting with R Markdown today!

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.

Grow your data skills with DataCamp for Mobile

Make progress on the go with our mobile courses and daily 5-minute coding challenges.