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 there, thank you very much for this very useful script!
For the French users - it is important to have your dataNew.csv file comma delimited (sep = ",") and not semi-column delimited (sep = ";") which is the default for French System Excel.
Thank you.