Skip to content

Commit

Permalink
fix file copying
Browse files Browse the repository at this point in the history
  • Loading branch information
rudeboybert committed Jul 2, 2020
1 parent b01aa4d commit 227c471
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion 93-appendixC.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,22 @@ In this Section, we address some of the most common data wrangling we've encount

Let's load an example movies dataset, pare down the rows and columns a bit, and then show the first 10 rows using `slice()`.

```{r}
```{r, eval=FALSE}
movies_ex <- read_csv("https://moderndive.com/data/movies.csv") %>%
filter(type %in% c("action", "comedy", "drama", "animated", "fantasy", "rom comedy")) %>%
select(-over200)
movies_ex %>%
slice(1:10)
```
```{r, echo=FALSE, purl=FALSE}
movies_ex <- read_csv("data/movies.csv") %>%
filter(type %in% c("action", "comedy", "drama", "animated", "fantasy", "rom comedy")) %>%
select(-over200)
movies_ex %>%
slice(1:10)
```


### Dealing with missing values {#appendix-missing-values}
Expand Down
2 changes: 1 addition & 1 deletion index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ if (is_html_output()) {
)
from_vec <- here::here("data", data_files)
to_vec <- here::here("docs", "data", data_files)
purrr::walk(from_vec, file.copy, to = to_vec, overwrite = TRUE)
purrr::walk2(from_vec, to_vec, file.copy, overwrite = TRUE)
# To be updated to include the actual link to labs website
# when Albert has those ready
Expand Down

0 comments on commit 227c471

Please sign in to comment.