recodeStrings: recode vector of strings using a convertion table

Description Usage Arguments Details

View source: R/strings.R

Description

recode vector of strings using a convertion table

Usage

1
2
recodeStrings(input, conversionTable, from = 1, to = 2,
  replaceNA = T)

Arguments

input

input vector (usually strings)

conversionTable

data frame of at least two (from and to) columns

from, to

indeces of from/to columns

replaceNA

if TRUE all values that couldn't be matched will remain the origianl values, otherwise left as NAs

Details

...


vh-d/VHtools documentation built on May 3, 2019, 6:11 p.m.