is_matrix: Test if the object is a matchr_matrix

View source: R/matchr_matrix.R

is_matrixR Documentation

Test if the object is a matchr_matrix

Description

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

Usage

is_matrix(x)

Arguments

x

An object to test

Value

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

Examples

## Not run: 
# Setup
sigs <- create_signature(test_urls)
matches <- match_signatures(sigs)

# TRUE
is_matrix(matches)

# FALSE
is_matrix("text")

## End(Not run)

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