mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 04:20:53 +01:00
(v0.7.1.9102) lintr
This commit is contained in:
1 parent
59af355a89
commit
00cdb498a0
65 files changed
+620
-812
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user