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, for those who have problem in source_gist, try this.
devtools::source_gist("5589956", filename = "addNewData.R")