Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improved working on swd exercise #474

Merged
merged 1 commit into from
Jul 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions episodes/02-starting-with-data.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
You are going to load the data in R's memory using the function `read_csv()`
from the **`readr`** package, which is part of the **`tidyverse`**; learn
more about the **`tidyverse`** collection of packages
[here](https://www.tidyverse.org/).

Check warning on line 94 in episodes/02-starting-with-data.Rmd

View workflow job for this annotation

GitHub Actions / Build markdown source files if valid

[uninformative link text]: [here](https://www.tidyverse.org/)
**`readr`** gets installed as part as the **`tidyverse`** installation.
When you load the **`tidyverse`** (`library(tidyverse)`), the core packages
(the packages used in most data analyses) get loaded, including **`readr`**.
Expand Down Expand Up @@ -172,7 +172,7 @@
stores data as a `data.frame`, where `read_csv()` stores data as a `tibble`.
We prefer tibbles because they have nice printing properties among other
desirable qualities. Read more about tibbles
[here](https://tibble.tidyverse.org/).

Check warning on line 175 in episodes/02-starting-with-data.Rmd

View workflow job for this annotation

GitHub Actions / Build markdown source files if valid

[uninformative link text]: [here](https://tibble.tidyverse.org/)

The second statement in the code above creates a data frame but doesn't output
any data because, as you might recall, assignments (`<-`) don't display
Expand Down Expand Up @@ -338,6 +338,8 @@
1. Create a tibble (`interviews_100`) containing only the data in
row 100 of the `interviews` dataset.

Now, continue using `interviews` for each of the following activities:

2. Notice how `nrow()` gave you the number of rows in the tibble?

- Use that number to pull out just that last row in the tibble.
Expand Down
Loading