R/headDots.R

Defines functions headDots

### paste head of vector, and if some of it is left out, add '...' to it.

headDots <- function(x, max.cols) {
   s <- paste(head(x, max.cols), collapse=", ")
   if(length(x) > max.cols) {
      s <- paste(s, "...")
   }
   s
}

Try the maxLik package in your browser

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

maxLik documentation built on July 27, 2021, 1:07 a.m.