R/makeAvailable.R

Defines functions makeAvailable

Documented in makeAvailable

#' Convenience function to make the initial available animal list
#'
## Copyright(c) 2017-2020 R. Mark Sharp
## This file is part of nprcgenekeepr
#'
#' @return Initial available animals list
#'
#' @param candidates character vector of IDs of the animals available for
#' use in the group.
#' @param numGp integer value indicating the number of groups that should be
#' formed from the list of IDs. Default is 1.
makeAvailable <- function(candidates, numGp) {
  available <- list()
  for (i in 1:numGp) {
    available[[i]] <- candidates
  }
  available
}
rmsharp/nprcmanager documentation built on April 24, 2021, 3:13 p.m.