Update logicals.qmd, closes #1572
This commit is contained in:
parent
9de17a3ae2
commit
5a5c574416
|
@ -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`.
|
||||
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.
|
||||
|
||||
We'll see logical vectors again and again in the following chapters.
|
||||
|
|
Loading…
Reference in New Issue