Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 5 additions & 3 deletions modules/Data_Summarization/Data_Summarization.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Now that we have a <span style="color:blue">vector of numbers</span>.. what can
* `max(x)`: maximum value in x
* `min(x)`: minimum value in x

## Pipe (`|>`) vectors into summarizing functions
## Pipe vectors into summarizing functions

A vector can be summarized:

Expand Down Expand Up @@ -107,7 +107,9 @@ C. A dataset

## Summarize the data: `dplyr` `summarize()` function

`summarize` works on datasets without `pull()`.
`summarize()` is special!

It works on datasets without `pull()`.

Multiple summary statistics can be calculated at once!

Expand Down Expand Up @@ -257,7 +259,7 @@ er_grouped |>
```


## Do it in one step: use `|>` to string these together!
## Do it in one step: use the pipe to string these together!

Pipe `er` into `group_by`, then pipe that into `summarize`:

Expand Down
7 changes: 7 additions & 0 deletions modules/Data_Summarization/lab/Data_Summarization_Lab_Key.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -233,3 +233,10 @@ ces |>
) |>
arrange(mean)
```







Loading