Chapter 3 Logic statements
TRUE vs FALSE
TRUE == TRUE
## [1] TRUE
FALSE == TRUE) == FALSE (
## [1] TRUE
6==7
## [1] FALSE
6<=6
## [1] TRUE
4 != 5
## [1] TRUE
!(5 == 71)
## [1] TRUE
TRUE & TRUE
## [1] TRUE
FALSE & FALSE
## [1] FALSE
TRUE & c(TRUE, FALSE, FALSE)
## [1] TRUE FALSE FALSE
equivalent statement as
c(TRUE, TRUE, TRUE) & c(TRUE, FALSE, FALSE)
## [1] TRUE FALSE FALSE