!!! This Gist tutorial is deprecated. Its new version is available here !!!
This is some red text.
- Author: Thomas Girke
- Last update: 18-Nov-2020
This is some red text.
| ##' Modifies 'data' by adding new values supplied in newDataFileName | |
| ##' | |
| ##' newDataFileName is expected to have columns | |
| ##' c(lookupVariable,lookupValue,newVariable,newValue,source) | |
| ##' | |
| ##' 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'. | |
| ##' |