Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 99cb368

Browse files
committed
fixes #1887
1 parent 5a2d54f commit 99cb368

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

R/tapp.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,10 @@ function(x, index, fun, ..., cores=1, filename="", overwrite=FALSE, wopt=list())
8484
nl <- nlyr(x)
8585
if (length(index) > nl) {
8686
error("tapp", "length(index) > nlyr(x)")
87-
} else if (length(unique(index)) == 1) {
88-
warn("tapp", "it is not sensible to a single value as index (use app instead)")
89-
}
87+
}
88+
# else if (length(unique(index)) == 1) {
89+
# warn("tapp", "it is not sensible to a single value as index (use app instead)")
90+
#}
9091
index <- rep_len(index, nl)
9192
if (!is.factor(index)) {
9293
index <- factor(index, levels=unique(index))

0 commit comments

Comments
 (0)