addNewData: Modifies 'data' by adding new values supplied in...

Description Usage Arguments Details Value

View source: R/replace.R

Description

newDataFileName is expected to have columns c(lookupVariable,lookupValue,newVariable,newValue,source)

Usage

1
addNewData(data, newDataFileName)

Arguments

data

existing data.frame

newDataFileName

name of lookup table

Details

Within the column 'newVariable', replace values that match 'lookupValue' within column 'lookupVariable' with the value newValue'. If 'lookupVariable' is NA, then replace *all* elements of 'newVariable' with the value 'newValue'.

Note that lookupVariable can be the same as newVariable.

Value

modified data.frame


openefsa/efsa2016.00601 documentation built on May 24, 2019, 2:31 p.m.