lookupkey: Convert character vector based on lookup values

View source: R/lookupkey.R

lookupkeyR Documentation

Convert character vector based on lookup values

Description

lookupkey

Usage

lookupkey(key, input)

Arguments

key

data.frame or matrix where the first column are the strings to be corrected and the second is the "corrected" definitions.

input

character vector

Examples

key <- cbind(c("one", "two", "three", "four",
          "five"), c("one1", "two2", "three3", "over", "over"))
input <- c("one", "one", "two", "three", "four", "five")
lookupkey(key, input)


jsta/rjsta documentation built on June 7, 2022, 8:39 p.m.