Skip to content

Commit 700d028

Browse files
committed
Merge branch 'issue-352': fixes #352
2 parents c287389 + 7180c4e commit 700d028

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

R/rarecurve.R

+4-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@
2828
## Rarefy
2929
out <- lapply(seq_len(nr), function(i) {
3030
n <- seq(1, tot[i], by = step)
31-
if (n[length(n)] != tot[i])
32-
n <- c(n, tot[i])
31+
if (n[length(n)] != tot[i]) {
32+
## don't want names on n an `c` adds a name from `tot[i]`)
33+
n <- c(n, tot[i], use.names = FALSE)
34+
}
3335
drop(rarefy(x[i,], n))
3436
})
3537
Nmax <- sapply(out, function(x) max(attr(x, "Subsample")))

0 commit comments

Comments
 (0)