-
Notifications
You must be signed in to change notification settings - Fork 2
/
exercise_02.Rmd
34 lines (21 loc) · 1.1 KB
/
exercise_02.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
---
title: "Exercise 2"
output: html_notebook
---
## Directions
For the workshop, we've prebuilt a data set that has information about menus in Duke's Brodhead Center from three restaurants.
1. From the File menu, open a New R Notebook: `File > New File > R Notebook`
1. Add a code chunk at/around line 20. (Hint: *Ctrl+Alt+I*)
1. Load the `tidyverse` package. In that code-chunk, type: `library(tidyverse)` and **run the code chunk**.
1. Now you are ready to make new code chunks and follow the steps in below.
## Exercise: Data Structures & Vector Types
1. Using what we've you've seen in class, if `data/brodheadCenter.csv` is a CSV (comma separated values) file, how would you load the file into a new object called `brodhead`?
2. What is the data structure of the `brodhead`?
3. Take a look at the structure of the `brodhead` object.
- How many observations (rows) are there?
- How many variables (columns) are there?
- How many of the variables are numeric data?
## Answers
See the [answers](answers.Rmd)
## Quiz
Take the [interactive quizes](https://libjohn.shinyapps.io/intro2r_quizzes/)