Quarto Theme

Title Slide Subtitle

Author One

Another Author

Standard Slide Format

This is how a block of text will appear. Links, such as one to pharmar.org, will appear like this.

  • Bullet item one
  • Bullet item two

Plot Output

library(ggplot2)

ggplot(mpg, aes(displ, hwy, colour = class)) + 
  geom_point()

Other Code Cells

Using #| code-line-numbers: "2,3"
fibonacci <- function(n) {
  if (n <= 1) return(0)
  if (n == 2) return(1)
  fibonacci(n - 1) + fibonacci(n - 2)
}

Console Output

Example base analogs to common dplyr functions:

script.R
mtcars |>
  subset(cyl > 2) |>
  transform(qmin = qsec / 60) |>
  subset(select = c("mpg", "cyl", "qmin")) |>
  head()
1
subset can be used as a simple stand-in for dplyr::filter
2
transform can be used as a replacement for dplyr::mutate
                   mpg cyl      qmin
Mazda RX4         21.0   6 0.2743333
Mazda RX4 Wag     21.0   6 0.2836667
Datsun 710        22.8   4 0.3101667
Hornet 4 Drive    21.4   6 0.3240000
Hornet Sportabout 18.7   8 0.2836667
Valiant           18.1   6 0.3370000