Introduction

#此处是标题,{#此处为标题的别名}
每个标题都需要有一个别名,别名的格式为“你的学号-有意义的标题缩写”

这里是序言。
我们可以访问课程主页:商务数据智能分析

Section 1

这里是序言的第1小节。
行尾空两格可另起一段。
我们可以设置字体的加粗斜体

引用:我们可以引入益辉大神写的包: knitr (Xie 2015).

Section 2

这里是序言的第2小节。

我们可以写公式:
- 行内公式:\(a^2 + b^2 = c^2\).就是这样简单。
- 行间公式: \[X = \begin{bmatrix}1 & x_{1}\\ 1 & x_{2}\\ 1 & x_{3} \end{bmatrix}\]

First SubSection of Section 2

  1. 插入图片:Picture
    大

  2. 画图:Figure

  • 使用默认设置,结果如下
par(mar = c(4, 4, .1, .1))
plot(pressure, type = 'b', pch = 19)

  • 设置eval = FALSE可以不显示代码运行结果
par(mar = c(4, 4, .1, .1))
plot(pressure, type = 'b', pch = 19)

Second SubSection of Section 2

  1. 动态表格:Table
  • 设置echo = FALSE可以不显示代码
Sepal.Length Sepal.Width Petal.Length Petal.Width Species
5.1 3.5 1.4 0.2 setosa
4.9 3.0 1.4 0.2 setosa
4.7 3.2 1.3 0.2 setosa
4.6 3.1 1.5 0.2 setosa
5.0 3.6 1.4 0.2 setosa
5.4 3.9 1.7 0.4 setosa
  • 如下代码可查看表格的第一个元素 5.1
`r iris[1,1]`
  1. 静态表格
姓名 学号
张三 007
李四 008

References

Xie, Yihui. 2015. Dynamic Documents with R and Knitr. 2nd ed. Boca Raton, Florida: Chapman; Hall/CRC. http://yihui.name/knitr/.