parent
c2cc5bf3c5
commit
d785c0bba1
|
@ -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)
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue