My first quarto document

Author

EA

Introduction

This is the first time I am showing how to use qmd file to BCE Data Analysis 2025 class.

Show them how to

  1. Install a package (required only once)
  2. Load a package (in every session)
  3. Render/compile a document

Type an equation

\[ E=mc^2 \]

\[ y_i=\beta_0 +\beta_1xi+e_i \]

Code

remove(list=ls())
addition  <- 2+2 # addition

addition
[1] 4
2+2 # addition
[1] 4
2*4 # multiplication
[1] 8
2**4 # exponentiate
[1] 16

Let’s explore the datasets package with ? command.

?datasets
library(help = "datasets")

airmiles
Time Series:
Start = 1937 
End = 1960 
Frequency = 1 
 [1]   412   480   683  1052  1385  1418  1634  2178  3362  5948  6109  5981
[13]  6753  8003 10566 12528 14760 16769 19819 22362 25340 25343 29269 30514

Conclusion

Yay!

  • We were able to type our first equation!