Skip to content

Commit 26eff38

Browse files
committed
Fix typos (found by @coopermkr).
1 parent b7233e9 commit 26eff38

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

episodes/04-data-structures-part2.Rmd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,9 @@ head(life_expectancy)
296296
```
297297

298298
We can also use a logical vector to achieve the same result. Make sure the
299-
vector's length match the number of columns in the data frame (to avoid R repeating the shorter vector to match the length of the longer vector, called "vector recycling"):
299+
vector's length matches the number of columns in the data frame (to avoid R
300+
repeating the shorter vector to match the length of the longer vector, called
301+
"vector recycling"):
300302

301303
```{r}
302304
life_expectancy <- gapminder[c(TRUE, TRUE, FALSE, FALSE, TRUE, FALSE)]
@@ -308,7 +310,7 @@ head(life_expectancy)
308310
### Vector Recycling
309311

310312
Vector recycling occurs when working with vectors of different length and it
311-
consist on repeating the elements of the shorter vector up to the lenght of
313+
consist of repeating the elements of the shorter vector up to the length of
312314
the larger one. For more information, check the book R for Data Science and its
313315
[chapter about vectors](https://r4ds.had.co.nz/vectors.html#scalars-and-recycling-rules).
314316
::::::::

0 commit comments

Comments
 (0)