From 209dc039ecc5ee280e5239afe5e2a77a851f795f Mon Sep 17 00:00:00 2001 From: searoso Date: Tue, 20 Jan 2015 21:34:18 +0300 Subject: Update r.html.markdown Added logical operators that were missing. --- r.html.markdown | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'r.html.markdown') diff --git a/r.html.markdown b/r.html.markdown index c555d748..13fa2654 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 for | 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 -- cgit v1.2.3 From 3e40335e96eca14affc8b9ad70bbda1c90e09b62 Mon Sep 17 00:00:00 2001 From: searoso Date: Sun, 25 Jan 2015 05:06:13 +0300 Subject: Update r.html.markdown --- r.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'r.html.markdown') diff --git a/r.html.markdown b/r.html.markdown index 13fa2654..447db4b3 100644 --- a/r.html.markdown +++ b/r.html.markdown @@ -229,7 +229,7 @@ FALSE != FALSE # FALSE FALSE != TRUE # TRUE # Missing data (NA) is logical, too class(NA) # "logical" -# Use for | and & for logic operations. +# Use | and & for logic operations. # OR TRUE | FALSE # TRUE # AND -- cgit v1.2.3 From 2f8765033fa2fcbe01ce535c314b71d50d29fb47 Mon Sep 17 00:00:00 2001 From: acganesh Date: Wed, 28 Jan 2015 23:27:09 -0600 Subject: Add definition of parakeet in r.html.markdown Added a definition of the `parakeet` variable. It's currently never defined, but referenced. --- r.html.markdown | 1 + 1 file changed, 1 insertion(+) (limited to 'r.html.markdown') diff --git a/r.html.markdown b/r.html.markdown index 447db4b3..d3d725d3 100644 --- a/r.html.markdown +++ b/r.html.markdown @@ -259,6 +259,7 @@ levels(infert$education) # "0-5yrs" "6-11yrs" "12+ yrs" # NULL # "NULL" is a weird one; use it to "blank out" a vector class(NULL) # NULL +parakeet = c("beak", "feathers", "wings", "eyes") parakeet # => # [1] "beak" "feathers" "wings" "eyes" -- cgit v1.2.3