-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathhandson.Rmd
More file actions
65 lines (41 loc) · 1.7 KB
/
handson.Rmd
File metadata and controls
65 lines (41 loc) · 1.7 KB
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
60
61
62
63
64
65
---
title: "Using R to Orchestrate APIs -- Hands-on"
subtitle: "using An API Of Ice And Fire"
author: "John Little"
date: '`r Sys.Date()`'
output:
html_notebook: default
---
```{r load-libraries}
library(jsonlite)
```
### Introduction to R Markdown Notebooks
This is an [R Markdown](http://rmarkdown.rstudio.com) Notebook. When you execute code within the notebook, the results appear beneath the code.
Try executing this chunk by clicking the *Run* button within the chunk or by placing your cursor inside it and pressing *Ctrl+Shift+Enter*.
```{r}
plot(cars)
```
Add a new chunk by clicking the *Insert Chunk* button on the toolbar or by pressing *Ctrl+Alt+I*.
When you save the notebook, an HTML file containing the code and output will be saved alongside it (click the *Preview* button or press *Ctrl+Shift+K* to preview the HTML file).
---
## Hands-on Part I
- Using the [OMDb API](http://www.omdbapi.com/)
- Practice geting and parsing information about your favorite movie
---
## Hands-on Part II
- Familiarize yourself with the API Of Ice And Fire -- http://anapioficeandfire.com/
- The first page has practice queries
- There is a documentation section at the iceandfire site
- Answers to the questions below can be found in the **answers.Rmd** file or at http://www.johnlittle.info/project/custom/rcs2017/handson.nb.html
- [Answers](http://www.johnlittle.info/project/custom/rcs2017/handson.nb.html)
1. What is the title of book10?
2. How many pages in book10?
3. How many characters in book 10?
```{r book10}
```
## Bonus Round
1. How many different publishers are there?
2. How many books did each publisher publish?
3. List each book with it's publisher
```{r publishers}
```