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

Remove premature reference to tibbles #509

Merged
merged 1 commit into from
May 21, 2024
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
4 changes: 2 additions & 2 deletions episodes/02-starting-with-data.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

::::::::::::::::::::::::::::::::::::::::::::::::::

## What are data frames and tibbles?
## What are data frames?

Data frames are the *de facto* data structure for tabular data in `R`, and what
we use for data processing, statistics, and plotting.
Expand Down Expand Up @@ -105,7 +105,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 108 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 @@ -183,10 +183,10 @@
similar to `read_csv()`, with a few notable differences. First, `read.csv()`
coerces column names with spaces and/or special characters to different names
(e.g. `interview date` becomes `interview.date`). Second, `read.csv()`
stores data as a `data.frame`, where `read_csv()` stores data as a `tibble`.
stores data as a `data.frame`, where `read_csv()` stores data as a different kind of data frame called 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 189 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
Loading