forked from smussenden/data_journalism_2021_fall
-
Notifications
You must be signed in to change notification settings - Fork 48
/
my_class_reference.rmd
35 lines (27 loc) · 996 Bytes
/
my_class_reference.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
---
title: "Class Reference"
author: "Derek Willis"
output:
html_document:
theme: cerulean
highlight: pygments
toc: true
toc_float:
collapsed: true
smooth_scroll: false
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## Introduction
Consider this a personal guide to the commands and functions you will learn. In general, when you come across an R command or function that you want to remember, put it in here along with a description of what it does and when you'd use it.
### How to set the working directory
The command to set a working directory is setwd(). For example, this sets the working directory to a directory called data_journalism_2024_fall inside a directory called jour472 located inside your home directory (the ~ is equivalent of /Users/[youruser] on a Mac).
```{r}
setwd("~/jour472/data_journalism_2024_fall")
```
### How to install and load the tidyverse
```{r}
install.packages("tidyverse")
library(tidyverse)
```