match: Value matching

Description Usage Arguments Value

View source: R/match.R

Description

Value matching

Usage

1
2
3
4
5
6
7
match(x, table, ...)

## Default S3 method:
match(x, table, ...)

## S3 method for class 'lvec'
match(x, table, na_incomparable = FALSE, ...)

Arguments

x

lvec of values to be matched

table

vector of values in which to look for matches.

...

optional arguments passed to and from other methods.

na_incomparable

can NA's and NaN's be matched.

Value

Returns a numeric lvec of the same length as x with the corresponding indices of records in table with the same value. When no match in table is found, NA is returned for the corresponding record.


ldat documentation built on March 26, 2020, 7:59 p.m.

Related to match in ldat...