Skip to content

Commit

Permalink
Move a set.seed() command to outside the function call, in order to r…
Browse files Browse the repository at this point in the history
  • Loading branch information
lcolladotor committed Mar 27, 2024
1 parent 906571e commit 761079f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion R/lab_presenters.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
#' ## You'll need to have access to Google Drive through
#' ## googledrive::drive_auth() set up.
#'
#' ## Set the seed for reproducibility of the results
#' set.seed(20190918)
#'
#' ## Update lab presenters sheet
#' lab_presenters(
Expand Down Expand Up @@ -65,7 +67,6 @@ lab_presenters <- function(presenters, start_date = "2019-09-18",
i <- rep(seq(from = 1, to = length(presenters), by = n), each = n)

## Randomize presenters
set.seed(as.numeric(gsub("-", "", start_date)))
presenters <- sample(presenters)

## Group presenters (add NAs if missing)
Expand Down
2 changes: 1 addition & 1 deletion man/jaffelab-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/lab_presenters.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 761079f

Please sign in to comment.