Skip to content

Commit

Permalink
change sequencing 1:N to use seq_along
Browse files Browse the repository at this point in the history
  • Loading branch information
RC-88 committed Jun 5, 2023
1 parent 008d229 commit 3e83492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/cadra_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ generate_permutations <- function(
# Create permutation matrix
perm <- matrix(NA, nrow=n_perm, ncol=n)
colnames(perm) <- names(input_score)
rownames(perm) <- 1:n_perm
rownames(perm) <- seq_along(n_perm)

# Sample the input scores
for(i in seq_len(n_perm)){
Expand Down

0 comments on commit 3e83492

Please sign in to comment.