Skip to content

Commit

Permalink
Check tidyr, no content updates, bump version, addresses #340
Browse files Browse the repository at this point in the history
  • Loading branch information
mine-cetinkaya-rundel committed May 30, 2024
1 parent 03a500d commit c5065de
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
9 changes: 4 additions & 5 deletions _freeze/html/tidyr/execute-results/html.json

Large diffs are not rendered by default.

Binary file modified html/images/logo-tidyr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 8 additions & 4 deletions html/tidyr.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,15 @@ Use these functions to split or combine cells into individual, isolated values.
Create new combinations of variables or identify implicit missing values (combinations of variables not present in the data).
- `expand(data, ...)`: Create a new tibble with all possible combinations of the values of the variables listed in ... Drop other variables.
- `expand(data, ...)`: Create a new tibble with all possible combinations of the values of the variables listed in ...
Drop other variables.
```{r}
expand(mtcars, cyl, gear, carb)
```
- `complete(data, ..., fill = list())`: Add missing possible combinations of values of variables listed in ... Fill remaining variables with NA.
- `complete(data, ..., fill = list())`: Add missing possible combinations of values of variables listed in ...
Fill remaining variables with NA.
```{r}
complete(mtcars, cyl, gear, carb)
Expand All @@ -223,13 +225,15 @@ x <- tribble(
)
```

- `drop_na(data, ...)`: Drop rows containing `NA`s in ... columns.
- `drop_na(data, ...)`: Drop rows containing `NA`s in ...
columns.

```{r}
drop_na(x, x2)
```
- `fill(data, ..., .direction = "down")`: Fill in `NA`s in ... columns using the next or previous value.
- `fill(data, ..., .direction = "down")`: Fill in `NA`s in ...
columns using the next or previous value.
```{r}
fill(x, x2)
Expand Down
Binary file modified keynotes/tidyr.key
Binary file not shown.
Binary file modified pngs/tidyr.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 modified tidyr.pdf
Binary file not shown.

0 comments on commit c5065de

Please sign in to comment.