diff options
author | TheDmitry <TheDmitry@users.noreply.github.com> | 2015-01-26 10:55:19 +0300 |
---|---|---|
committer | TheDmitry <TheDmitry@users.noreply.github.com> | 2015-01-26 10:55:19 +0300 |
commit | 5f0f3e992c3d6303bf0d8f70d3cf9ca2d6d56431 (patch) | |
tree | 7c8c7d404666816144810fac7435e6602c587ec1 /r.html.markdown | |
parent | b60ed50cdd5ed990bf2b88d6be6f1e6e1cd2775e (diff) | |
parent | 553bf62f896f22d8cab43e127693a5af561fe0c7 (diff) |
Merge remote-tracking branch 'upstream/master' into json-ru
Diffstat (limited to 'r.html.markdown')
-rw-r--r-- | r.html.markdown | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/r.html.markdown b/r.html.markdown index c555d748..447db4b3 100644 --- a/r.html.markdown +++ b/r.html.markdown @@ -229,6 +229,13 @@ FALSE != FALSE # FALSE FALSE != TRUE # TRUE # Missing data (NA) is logical, too class(NA) # "logical" +# Use | and & for logic operations. +# OR +TRUE | FALSE # TRUE +# AND +TRUE & FALSE # FALSE +# You can test if x is TRUE +isTRUE(TRUE) # TRUE # Here we get a logical vector with many elements: c('Z', 'o', 'r', 'r', 'o') == "Zorro" # FALSE FALSE FALSE FALSE FALSE c('Z', 'o', 'r', 'r', 'o') == "Z" # TRUE FALSE FALSE FALSE FALSE |