Skip to content

Commit

Permalink
remember c() with "combine" how-r-thinks-about-data.Rmd
Browse files Browse the repository at this point in the history
remember or pronounce
  • Loading branch information
steltenpower authored Jul 9, 2024
1 parent 179fbe8 commit 5ccd566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion episodes/how-r-thinks-about-data.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ There are 4 main types of vectors (also known as *atomic vectors*):

Vectors can only be of a **single type**. Since each column in a data.frame is a vector, this means an accidental character following a number, like `29,` can change the type of the whole vector. Mixing up vector types is one of the most common mistakes in R, and it can be tricky to figure out. It's often very useful to check the types of vectors.

To create a vector from scratch, we can use the `c()` function, putting values inside, separated by commas.
To create a vector from scratch, we can use the `c()` function, putting values inside, separated by commas. Some say c is short for combine, which might help remembering or pronouncing.

```{r c-vector}
c(1, 2, 5, 12, 4)
Expand Down

0 comments on commit 5ccd566

Please sign in to comment.