-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path431-first-r-template.Rmd
59 lines (41 loc) · 1.2 KB
/
431-first-r-template.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
title: "A First R Markdown Template"
author: "Your Name"
date: "`r Sys.Date()`"
output:
html_document:
toc: TRUE
code_folding: show
---
```{r setup, message=FALSE}
knitr::opts_chunk$set(comment=NA)
options(width = 70)
```
```{r library_load, message = FALSE}
## add additional libraries/packages here, as needed
## leaving the tidyverse as the last package loaded
library(tidyverse)
```
```{r load_data}
## if you want to load in a data set called namebeta.csv
## and then create a tibble from it called namealpha
## then uncomment the next line by removing the #
# namealpha <- read_csv("namebeta.csv")
```
# Big Section Header
## Subsection Header
When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
```{r iris_summary}
summary(iris)
```
# Building the Next Section
## Including Plots
You can also embed plots, for example:
```{r pressure}
ggplot(iris, aes(x = Sepal.Length)) +
geom_histogram(bins = 20, col = "white")
```
# Session Information
```{r session_info}
sessionInfo()
```