Skip to content

Commit

Permalink
Merge pull request #877 from SarithaKodikara/main
Browse files Browse the repository at this point in the history
Remove unwanted R code
  • Loading branch information
matthieu-bruneaux authored Nov 21, 2023
2 parents 9dd055c + 81304da commit 713a568
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions episodes/05-data-structures-part2.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,6 @@ cats <- rbind(cats, cats)
cats
```

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
```

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

## Challenge 1
Expand Down Expand Up @@ -398,7 +390,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

0 comments on commit 713a568

Please sign in to comment.