Chapter 6 R Programming

6.1 Environment Set up

Here is an equation.

\[\begin{equation} f\left(k\right) = \binom{n}{k} p^k\left(1-p\right)^{n-k} \tag{6.1} \end{equation}\]

You may refer to using \@ref(eq:binom), like see Equation (6.1).

6.2 R- Basic Syntax

Labeled theorems can be referenced in text using \@ref(thm:tri), for example, check out this smart theorem 6.1.

Theorem 6.1 For a right triangle, if \(c\) denotes the length of the hypotenuse and \(a\) and \(b\) denote the lengths of the other two sides, we have \[a^2 + b^2 = d^2\]

Read the here here https://bookdown.org/yihui/bookdown/markdown-extensions-by-bookdown.html.

6.3 Callout blocks

The R Markdown Cookbook provides more help on how to use custom blocks to design your own callouts: https://bookdown.org/yihui/rmarkdown-cookbook/custom-blocks.html

Stat 579

6.4 R- Data Types

6.5 R- Operators

6.6 R- Data Interfaces

6.7 R- ggplots

6.8 R- Elements of the tidyverse

6.9 R- Advanced data Structures