R/utils_infoPrint.R

Defines functions infoPrint

#' infoPrint 
#'
#' @description A utils function
#'
#' @return The return value, if any, from executing the utility.
#'
#' @noRd
infoPrint <- function(n, nr) {
  nhead <- min(n, nr)
  if (n < 0) {
    nhead_print <- nr + n
  }else {
    nhead_print <- nhead
  }
  return(nhead_print)
}

Try the FielDHub package in your browser

Any scripts or data that you put into this service are public.

FielDHub documentation built on Oct. 20, 2023, 1:07 a.m.