From 5a73d8e212878268c85d90b479d3dfbab348cce8 Mon Sep 17 00:00:00 2001 From: Waldir Leoncio Date: Wed, 18 Mar 2020 15:02:56 +0100 Subject: [PATCH] Fixed scope bug --- R/strcmp.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/strcmp.R b/R/strcmp.R index c64cbce..6637e7b 100644 --- a/R/strcmp.R +++ b/R/strcmp.R @@ -19,7 +19,7 @@ strcmp <- function(s1, s2) { } else { # s1 and s2 are vectors/matrices if (identical(dim(s1), dim(s2))) { - checks <- as.matrix(s4 == s5) + checks <- as.matrix(s1 == s2) } else { stop("Inputs must be the same size or either one can be a scalar.") }