Skip to content

Commit

Permalink
Comments on T and F
Browse files Browse the repository at this point in the history
Fixes #19.
  • Loading branch information
garrettgman committed Jan 8, 2019
1 parent 23a930b commit 0c5e97e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objects.rmd
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ Logical vectors store `TRUE`s and `FALSE`s, R's form of Boolean data. Logicals a
## FALSE
```

Any time you type `TRUE` or `FALSE` in capital letters (without quotation marks), R will treat your input as logical data. R also assumes that `T` and `F` are shorthand for `TRUE` and `FALSE`:
Any time you type `TRUE` or `FALSE` in capital letters (without quotation marks), R will treat your input as logical data. R also assumes that `T` and `F` are shorthand for `TRUE` and `FALSE`, unless they are defined elsewhere (e.g. `T <- 500`). Since the meaning of `T` and `F` can change, its best to stick with `TRUE` and `FALSE`:

```r
logic <- c(TRUE, FALSE, TRUE)
Expand Down

0 comments on commit 0c5e97e

Please sign in to comment.