mtfrm {base}R Documentation

Auxiliary Function for Matching

Description

A generic auxiliary function to transform objects for matching.

Usage

mtfrm(x)

Arguments

x

an R object

Details

Matching via match will use mtfrm to transform internally classed objects (see is.object) to a vector representation appropriate for matching. The default method performs as.character if this preserves the length.

Ideally, methods for mtfrm should ensure that comparisons of same-classed objects via match are consistent with those employed by methods for duplicated/unique and ==/!= (where applicable).

Value

A vector of the same length as x.


[Package base version 4.3.0 Index]