A Tutorial on Quarto

Author

SZhang

3.1 Introduction

Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see https://quarto.org.

3.2 Running Code

When you click the Render button a document will be generated that includes both content and the output of embedded code. You can embed code like this:

1 + 1
[1] 2

You can add options to executable code like this

[1] 4

The echo: false option disables the printing of code (only output is displayed).

3.3 Descriptive Statistics

x=c(17, 18, 16, 18, 17, 16, 18, 17, 18, 16, 17)
T=table(x)
barplot(T)

3.4 Inferential Statistics

t.test(x, mu=17)

    One Sample t-test

data:  x
t = 0.36274, df = 10, p-value = 0.7244
alternative hypothesis: true mean is not equal to 17
95 percent confidence interval:
 16.53250 17.64932
sample estimates:
mean of x 
 17.09091 

::: panel-tabset ## Show

Student Data
Name Quiz1 Quiz2
Tom 98 95
Annie 99 94
Cindy 96 100

Explain

This data is from…

Click here to see more examples

You really should work hard … :::