R/print.HmscRandomLevel.R

Defines functions print.HmscRandomLevel

#' @export

print.HmscRandomLevel = function(x, ...){
   if ((x$sDim)<Inf){
      cat(sprintf("Hmsc random level object with %d units. Spatial dimensionality is %d and number of covariates is %d.\n",
               x$N, x$sDim, x$xDim))
   } else
   {
      cat(sprintf("Hmsc random level object with %d units. Spatiality defined through a distance matrix and number of covariates is %d.\n",
                  x$N, x$xDim))
   }
}

Try the Hmsc package in your browser

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

Hmsc documentation built on Aug. 11, 2022, 5:11 p.m.