R/pad.spaces.R

Defines functions pad.spaces

################################################################################
# pad.spaces returns a string containing the number of spaces given as an 
# argument.
# Author: Alexis Dinno
# Date: May 20, 2026
# Takes: A single positive integer
pad.spaces <- function(n) {
  n <- max(0, n)
  return(paste0(rep(" ",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.