To install the code, do one of the following:
- Download it then load with
source(addNewData.R)
- Load it directly from github
library(devtools, quietly=TRUE)
source_gist("https://gist.github.com/dfalster/5589956")
To use it, simply type
addNewData("dataNew.csv", myData, allowedVars)
where allowedVars
is vector of permissible variable names for the columns of myData.
Hi, been trying to get the code to work but keep getting the error message:
Incorrect name in lookup table for Brand_Lookup.csv--> lookupVariable, lookupValue, newVariable, newValue
I am fairly new to R but believe it may be caused by my csv being saved from Excel and as non-English native my regional settings make my delimiter a ; instead of ,
May this be the cause and if so, what is the best way around it?