From 57662b4572cfde244f7f9125c57bd62c27700e18 Mon Sep 17 00:00:00 2001 From: Giulio Centorame <46871438+GiulioCentorame@users.noreply.github.com> Date: Thu, 25 May 2023 12:47:36 +1000 Subject: [PATCH] Fixed option for logical AND connective ``` > findVars("height", "weight", logic = "and") Error in findVars("height", "weight", logic = "and") : logic %in% c("any", "all", "none") is not TRUE ``` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5f5ee51..98dffef 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ vars <- findVars("height", "length", logic="any", whole.word=TRUE, ignore.case=T If I want any with height AND length: ```r -vars <- findVars("height", "length", logic="and", whole.word=TRUE, ignore.case=TRUE) +vars <- findVars("height", "length", logic="all", whole.word=TRUE, ignore.case=TRUE) ``` If I want to find anything with sleep somewhere (not necessarily a whole word) I might do: