Constant: Constant String/Sequence Comparator

View source: R/Constant.R

ConstantR Documentation

Constant String/Sequence Comparator

Description

A trivial comparator that returns a constant for any pair of strings or sequences.

Usage

Constant(constant = 0)

Arguments

constant

a non-negative numeric vector of length 1. Defaults to zero.

Value

A Constant instance is returned, which is an S4 class inheriting from StringComparator.


comparator documentation built on March 18, 2022, 6:15 p.m.