R/is.R

Defines functions is_feature is_instance is_type

Documented in is_feature is_instance is_type

#' Is it a Q7 Type, Instance or Feature?
#'
#' @param x object
#'
#' @return Boolean
#' @name is
NULL

#' @rdname is
#' @export
is_type <- function(x){
    inherits(x, "Q7type")
}

#' @rdname is
#' @export
is_instance <- function(x){
    inherits(x, "Q7instance")
}

#' @rdname is
#' @export
is_feature <- function(x){
    inherits(x, "Q7feature")
}

Try the Q7 package in your browser

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

Q7 documentation built on Jan. 13, 2021, 10:11 a.m.