R/tpad.R

Defines functions tpad

# tpad: returns multiples of a string, defaulting to spaces. Takes:
#   n: a number of replications,
#   pad: string to replicate
# Returns: a formatted string
# Date: March 31, 2026
tpad <- function(n=1, pad=" ") {
  if (n <= 0) {
    return("")
    }
  return( paste0(rep(x=pad,times=n),collapse="") )
  }

Try the dunn.test package in your browser

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

dunn.test documentation built on June 5, 2026, 5:06 p.m.