is_image: Test if the object is a matchr_image

View source: R/matchr_image.R

is_imageR Documentation

Test if the object is a matchr_image

Description

This function returns TRUE for matchr_image objects and FALSE for all other objects.

Usage

is_image(x)

Arguments

x

An object to test

Value

A logical scalar, TRUE if x inherits from class "matchr_image" and FALSE otherwise.

Examples

## Not run: 
# Setup
img <- load_image(test_urls)

# TRUE
is_image(img)

# FALSE
is_image("text")

## End(Not run)

UPGo-McGill/matchr documentation built on July 19, 2023, 1:02 p.m.