R/is.Catalog.R

Defines functions is.Catalog

Documented in is.Catalog

is.Catalog <- function(x, ignore.class = FALSE) {
        if ( any(unlist(lapply(x$catalog, .canbeCatalog)) == FALSE) == TRUE ) { return(FALSE) }
        if ( length(x$catalog) != length(x$data) ) { return(FALSE) }
        if ( ( ! ignore.class ) & ( class(x) != 'Catalog' ) ) { return(FALSE) }
        return(TRUE)
}

Try the vetools package in your browser

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

vetools documentation built on May 2, 2019, 10:15 a.m.