@@ -82,7 +82,7 @@ The four most important types of atomic vector are logical, integer, double, and
|
|||||||
Logical vectors are the simplest type of atomic vector because they can take only three possible values: `FALSE`, `TRUE`, and `NA`. Logical vectors are usually constructed with comparison operators, as described in [comparisons]. You can also create them by hand with `c()`:
|
Logical vectors are the simplest type of atomic vector because they can take only three possible values: `FALSE`, `TRUE`, and `NA`. Logical vectors are usually constructed with comparison operators, as described in [comparisons]. You can also create them by hand with `c()`:
|
||||||
|
|
||||||
```{r}
|
```{r}
|
||||||
1:10 %% 3
|
1:10 %% 3 == 0
|
||||||
|
|
||||||
c(TRUE, TRUE, FALSE, NA)
|
c(TRUE, TRUE, FALSE, NA)
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user