match.data.frame: match rows of dataframes

View source: R/auxiliary.R

match.data.frameR Documentation

match rows of dataframes

Description

'match.data.frame' returns a vector of the positions of (first) matches of its first argument in its second. '

Usage

match.data.frame(
  match_from,
  match_to,
  nomatch = NA_integer_,
  method = "string"
)

Arguments

match_from

data frame to match from

match_to

data frame to match to

nomatch

what to do if there is no match

method

choose between 'string' and 'list', the former compares entries by their string values (i.e. 10 and '10' are considered equal), the latter requires exact type match


wangtengyao/putils documentation built on Nov. 26, 2024, 2:01 a.m.