Skip to content

Commit c2d13a9

Browse files
committed
refactor: use more seq_len()
1 parent 40f1d05 commit c2d13a9

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)