Skip to content

Commit

Permalink
docs: remove duplicate information and add source to final data creat…
Browse files Browse the repository at this point in the history
…ion.

Closes #50 and closes #55
  • Loading branch information
lwjohnst86 committed May 4, 2024
1 parent 2d6730c commit 3629ae0
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions sessions/dplyr-joins.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -611,20 +611,20 @@ to the Git history with {{< var keybind.git >}}.

## Wrangling data into final form

Now that we've got several datasets processed and joined, its now time
to bring it all together and put it into the `data-raw/mmash.R` script
so we can create a final working dataset.
Now that we've got several datasets processed and joined, it's time to
bring it all together and put it into the `data-raw/mmash.R` script so
we can create a final working dataset.

Open up the `data-raw/mmash.R` file and the top of the file, add the
`{tidyverse}` package to the end of the list of other packages if it
isn't there already. Move the code `library(fs)` to go with the other
packages as well. It should look something like this now:
Open up the `data-raw/mmash.R` file and the top of the file move the
code `library(fs)` to go with the other packages as well. It should look
something like this now:

```{r}
#| filename: "data-raw/mmash.R"
library(here)
library(tidyverse)
library(fs)
source(here("R/functions.R"))
```

Then, we will comment out the `download.file()`, `unzip()`,
Expand All @@ -643,6 +643,7 @@ mmash_link <- "https://physionet.org/static/published-projects/mmash/multilevel-
# unzip(here("data-raw/mmash-data.zip"),
# exdir = here("data-raw"),
# junkpaths = TRUE)
# Sys.sleep(1)
# unzip(here("data-raw/MMASH.zip"),
# exdir = here("data-raw"))
Expand Down

0 comments on commit 3629ae0

Please sign in to comment.