dplyrAfter today’s session you will be able to:
dplyr
RMarkdown (Rmd) files have three sections:




# = headings
_text_ = italics
**text** = bold
[text](link) = hyperlinked text
Other format options here: markdownguide.org/basic-syntax
Let’s look at the structure of an example code chunk


Note that chunk start must be formatted like:
- ```{language chunk_name, option_1, option_2, ...}
Let’s check out three crucial code chunk options!

rmarkdown package
install.packages function
Look at (1) YAML, (2) Plain text, and (3) code chunks
read.csvreadxl::read_excel

read.csv to read “minnow.csv” into R
str or dplyr::glimpse
Two ways in base R to access data:
data[row number, column number]
my_df[c(1, 2, 3), 1] would get rows 1 through 3 of column 1data$column








dplyr Part 1: filter==, |, and &
filter
dplyr::filter == subset
filter instead of subset just to live fully in the Tidyverse
dplyr Part 2: mutatemutate
-) in column names
dplyr Part 3: selectselect
dplyr