R/hasSets.R

Defines functions hasSets

Documented in hasSets

#' Has Sets
#' 
#' Checks, whether set names have been set
#' 
#' 
#' @param x MAgPIE object
#' @return Boolean indicating whether coordinates were found or not
#' @author Jan Philipp Dietrich
#' @seealso \code{\link{getCoords}}
#' @examples
#' 
#' hasSets(maxample("pop"))
#' hasSets(maxample("animal"))
#' 
#' 
#' @export
hasSets <- function(x) {
  return(!is.null(names(dimnames(x))))
}

Try the magclass package in your browser

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

magclass documentation built on July 9, 2023, 7:03 p.m.