R/nlocs.R

Defines functions nlocs

Documented in nlocs

#' @title Extract Number of Unique Locations
#'
#' @description Function to extract the number of unique locations in the data 
#' set used in an MLE of the \code{\link{SVC_mle}} object.
#'
#' @param object \code{\link{SVC_mle}} object
#'
#' @return integer with the number of unique locations
#'
#' @author Jakob Dambon
#'
#'
#' @export
nlocs <- function(object) {
  nrow(unique(object$MLE$call.args$locs))
}

Try the varycoef package in your browser

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

varycoef documentation built on Sept. 18, 2022, 1:07 a.m.