Skip to content

Commit 58e83de

Browse files
Merge pull request #37 from m-muecke/last-seqlen
refactor: use more `seq_len()`
2 parents c27b0aa + c2d13a9 commit 58e83de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

R/baselearners.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1666,7 +1666,7 @@ X_fpc <- function(mf, vary, args) {
16661666
args$klX$xind <- xind
16671667

16681668
## only use part of the eigen-functions!
1669-
args$subset <- 1:min(ncol(klX$scores), args$npc.max)
1669+
args$subset <- seq_len(min(ncol(klX$scores), args$npc.max))
16701670
## args$a <- max(xind) - min(xind)
16711671

16721672
## scores \xi_{ik}: rows i=1,..., N and columns k=1,...,K

R/bootstrapCIs.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ plot.bootstrapCI <- function(x, which = NULL, pers = TRUE,
544544
if(!is.list(temp_CI)){
545545

546546
if(temp$dim >= 2){
547-
temp$value <- split(temp_CI, seq(nrow(temp_CI)))
547+
temp$value <- split(temp_CI, seq_len(nrow(temp_CI)))
548548
}else{
549549
## temp$dim == 1 like in scalar response with bsignal()
550550
## put each fold into one list entry

0 commit comments

Comments
 (0)