- Welcome to Fundamentals of R
- Update Everything
- Start a New Project
-
Data Wrangling and Analysis
- The Tidyverse
- Pipes
- select()
- mutate()
- filter()
- summarize()
- group_by() and summarize()
- arrange()
- Create a New Data Frame
- Bring it All Together (Data Wrangling)
-
Data Visualization
- The Grammar of Graphics
- Scatterplots
- Histograms
- Bar Charts
- Setting color and fill Aesthetic Properties
- Setting color and fill Scales
- Setting x and y Scales
- Adding Text to Plots
- Plot Labels
- Themes
- Facets
- Save Plots
- Bring it All Together (Data Visualization)
-
Quarto
- Quarto Overview
- YAML
- Text
- Code Chunks
- Tips for Working with Quarto
- Bring It All Together (Quarto)
-
Wrapping Up
- An Important Workflow Tip
Fundamentals of R
Text
This lesson is called Text, part of the Fundamentals of R course. This lesson is called Text, part of the Fundamentals of R course.
If the video is not playing correctly, you can watch it in a new window
Transcript
Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.
Your Turn
Working in your report.Rmd file, above the RMarkdown second-level header, add the following first-level header: “Introduction”
Add this text (note the bold and italics) below the introduction header: “This report is the best report ever. Pretty much the bees’ knees. Can’t say that I’ve ever seen a better report.”
Add the following second-level header: “Reasons Why This Report is the Best”
Add the following list of reasons why the report is the best:
It’s amazing
It’s quite amazing
It’s seriously amazing
Knit again and reopen the report.html file to make sure your changes show up.
Learn More
A review of the basics of Markdown text can be found on the RStudio website.
You need to be signed-in to comment on this post. Login.
Odile DOREUS
August 8, 2021
Hi David, I done all exercises and the output worked well for me but my report does not appear in the 4th window of R under files tabs. It's pop up the first time but for changes I have to go on my destktop were I saved the file so I can open it back and see the changes.
Craig Loschmann
September 18, 2021
In terms of formatting in RMarkdown, are you going to cover the Visual Markdown Editor?
Similarly, are there ways to change alignment (e.g. center a title) in the output?
Lindsay Quarles
October 7, 2021
I did it but only some of the formatting codes worked. Here's the code I wrote and here's the output I got, https://imgur.com/a/KBj61Vg.
Niger Sultana
May 2, 2022
Hi If I want Header both Italic and bold, like *Introduction. It did not work. Can you please let me know.
Cheers Niger
Hatem Kotb
August 3, 2022
Interesting to see that there is a 'Visual' interface in Rstudio now feeling spoiled :D