Skip to content

Commit

Permalink
Adds separate and unite diagrams to tidy.Rmd
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettgman committed Jul 18, 2016
1 parent 061e233 commit e4465bd
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Binary file modified images/0-keynote.key
Binary file not shown.
Binary file added images/tidy-17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tidy-18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions tidy.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 333,7 @@ You may have noticed that we skipped `table3` in the last section. `table3` is u

`separate()` turns a single character column into multiple columns by splitting the values of the column wherever a separator character appears.

[SEPARATE DIAGRAM] ![](images/blank.png)
![](images/tidy-17.png)

So, for example, we can use `separate()` to tidy `table3`, which combines values of *cases* and *population* in the same column.

Expand Down Expand Up @@ -371,7 371,7 @@ You can further customize `separate()` with the `remove`, `convert`, and `extra`

`unite()` does the opposite of `separate()`: it combines multiple columns into a single column.

**TODO: UNITE DESCRIPTION**
![](images/tidy-18.png)

We can use `unite()` to rejoin the *century* and *year* columns that we created in the last example. That data is saved as `tidyr::table6`.

Expand Down

0 comments on commit e4465bd

Please sign in to comment.