Quarto enables you to weave together content and executable code into a finished presentation. To learn more about Quarto presentations see https://quarto.org/docs/presentations/.
Bullets
When you click the Render button a document will be generated that includes:
Content authored with markdown
Output from executable code
Code
When you click the Render button a presentation will be generated that includes both content and the output of embedded code. You can embed code like this:
STEP 1. Load required libraries
install.library(ggplot2) → for charts install.library(dplyr) → for data handling install.library(tidyr) → for reshaping data
library(ggplot2)library(dplyr)
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
library(tidyr)
STEP 2. Read your CSV data file
This allows us to select the dataset file from the computer.
data <-read.csv(file.choose()) # Click your CSV file when dialog opens
STEP 3. Quick data check (optional - remove if not needed)
head(data) - shows first few rows colnames(data)- shows column names
print("Data preview:")
[1] "Data preview:"
head(data)
gender race.ethnicity parental.level.of.education lunch
1 female group B bachelor's degree standard
2 female group C some college standard
3 female group B master's degree standard
4 male group A associate's degree free/reduced
5 male group C some college standard
6 female group B associate's degree standard
test.preparation.course math.score reading.score writing.score
1 none 72 72 74
2 completed 69 90 88
3 none 90 95 93
4 none 47 57 44
5 none 76 78 75
6 none 71 83 78