Skip to content

Commit

Permalink
differences for PR #877
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 21, 2023
1 parent bebd84a commit cf1e497
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 23 deletions.
23 changes: 1 addition & 22 deletions 05-data-structures-part2.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,27 +233,6 @@ cats
8 tortoiseshell 3.3 1 9
```

But now the row names are unnecessarily complicated. We can remove the rownames,
and R will automatically re-name them sequentially:


```r
rownames(cats) <- NULL
cats
```

```{.output}
coat weight likes_string age
1 calico 2.1 1 2
2 black 5.0 0 3
3 tabby 3.2 1 5
4 tortoiseshell 3.3 1 9
5 calico 2.1 1 2
6 black 5.0 0 3
7 tabby 3.2 1 5
8 tortoiseshell 3.3 1 9
```

::::::::::::::::::::::::::::::::::::::: challenge

## Challenge 1
Expand Down Expand Up @@ -604,7 +583,7 @@ The object `gapminder` is a data frame with columns
- Use `cbind()` to add a new column to a data frame.
- Use `rbind()` to add a new row to a data frame.
- Remove rows from a data frame.
- Use `str()`, `summary()`, `nrow()`, `ncol()`, `dim()`, `colnames()`, `rownames()`, `head()`, and `typeof()` to understand the structure of a data frame.
- Use `str()`, `summary()`, `nrow()`, `ncol()`, `dim()`, `colnames()`, `head()`, and `typeof()` to understand the structure of a data frame.
- Read in a csv file using `read.csv()`.
- Understand what `length()` of a data frame represents.

Expand Down
Empty file modified fig/06-rmd-generate-figures.sh
100755 → 100644
Empty file.
Empty file modified fig/12-plyr-generate-figures.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion md5sum.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"episodes/02-project-intro.Rmd" "cd60cc3116d4f6be92f03f5cc51bcc3b" "site/built/02-project-intro.md" "2023-11-21"
"episodes/03-seeking-help.Rmd" "d24c310b8f36930e70379458f3c93461" "site/built/03-seeking-help.md" "2023-11-21"
"episodes/04-data-structures-part1.Rmd" "5ec938f71a9cec633cef9329d214c3a0" "site/built/04-data-structures-part1.md" "2023-11-21"
"episodes/05-data-structures-part2.Rmd" "de6c6ee224fa7201674d87844c9ede02" "site/built/05-data-structures-part2.md" "2023-11-21"
"episodes/05-data-structures-part2.Rmd" "c2def187e8cb1c53fd2ca2dc6f7b5d43" "site/built/05-data-structures-part2.md" "2023-11-21"
"episodes/06-data-subsetting.Rmd" "5d4ce8731ab37ddea81874d63ae1ce86" "site/built/06-data-subsetting.md" "2023-11-21"
"episodes/07-control-flow.Rmd" "6a8691c8668737e4202f49b52aeb8ac6" "site/built/07-control-flow.md" "2023-11-21"
"episodes/08-plot-ggplot2.Rmd" "a9a97a1eee46dc82b83c6c740a4412cf" "site/built/08-plot-ggplot2.md" "2023-11-21"
Expand Down

0 comments on commit cf1e497

Please sign in to comment.