Update logicals.qmd, closes #1572

This commit is contained in:
Mine Cetinkaya-Rundel 2023-10-30 08:18:58 -04:00 committed by GitHub
parent 9de17a3ae2
commit 5a5c574416
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -575,7 +575,7 @@ We don't expect you to memorize these rules, but they should become second natur
The definition of a logical vector is simple because each value must be either `TRUE`, `FALSE`, or `NA`. The definition of a logical vector is simple because each value must be either `TRUE`, `FALSE`, or `NA`.
But logical vectors provide a huge amount of power. But logical vectors provide a huge amount of power.
In this chapter, you learned how to create logical vectors with `>`, `<`, `<=`, `=>`, `==`, `!=`, and `is.na()`, how to combine them with `!`, `&`, and `|`, and how to summarize them with `any()`, `all()`, `sum()`, and `mean()`. In this chapter, you learned how to create logical vectors with `>`, `<`, `<=`, `>=`, `==`, `!=`, and `is.na()`, how to combine them with `!`, `&`, and `|`, and how to summarize them with `any()`, `all()`, `sum()`, and `mean()`.
You also learned the powerful `if_else()` and `case_when()` functions that allow you to return values depending on the value of a logical vector. You also learned the powerful `if_else()` and `case_when()` functions that allow you to return values depending on the value of a logical vector.
We'll see logical vectors again and again in the following chapters. We'll see logical vectors again and again in the following chapters.