(v0.7.1.9102) lintr

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2019-10-11 17:21:02 +02:00
1 parent 59af355a89
commit 00cdb498a0
65 files changed
+620 -812

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ like <- function(x, pattern, ignore.case = TRUE) {
} else {
# x and pattern are of same length, so items with each other
res <- vector(length = length(pattern))
for (i in 1:length(res)) {
for (i in seq_len(length(res))) {
if (is.factor(x[i])) {
res[i] <- as.integer(x[i]) %in% base::grep(pattern[i], levels(x[i]), ignore.case = ignore.case)
} else {