MatchTable: Match table to elements in the reference table

View source: R/matchtable.R

MatchTableR Documentation

Match table to elements in the reference table

Description

Match table to elements in the reference table

Usage

MatchTable(
  x,
  ref.table = NULL,
  ref.maindim = "rows",
  ref.names = NULL,
  x.table.name = "",
  ref.table.name = "input data",
  as.matrix = TRUE,
  trim.whitespace = TRUE,
  ignore.case = TRUE,
  silent.remove.duplicates = FALSE
)

Arguments

x

A vector or table containing values to be matched against ref.table

ref.table

The reference table which determines the order of the output vector

ref.maindim

Row or column.

ref.names

Alternatively, a vector of names can be provide instead of ref.table and ref.maindim.

x.table.name

Name used in the error messages.

ref.table.name

Name used in the error messages.

as.matrix

Converts x to a matrix. This will force all values to be of the same type.

trim.whitespace

Whether to trim leading and trailing whitespace when matching row or column names.

ignore.case

Logical; whether matching of names should ignore upper/lower case differences.

silent.remove.duplicates

Removes duplicates with giving warnings. This is particulary useful when dealing with banners.


NumbersInternational/flipChartBasics documentation built on Feb. 26, 2024, 5:34 a.m.