metric: Define a metric

View source: R/metric.R

metricR Documentation

Define a metric

Description

A metric is a definition of some comparison. By default, there are two "metrics": integer distance, and string similarity. This tool expands that toolkit to arbitrary comparisons.

Usage

metric(variable, func, tag)

Arguments

variable

A character vector of variables to run this metric on

func

A function that takes a single argument. This is evaluated by entity ID.

tag

A string to be used as the issue ID in the output spreadseet of anara::verify_ids

Value

A 'metric' object


nyuglobalties/anara documentation built on July 17, 2024, 4:05 p.m.