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 Nov. 25, 2020, 3 a.m.