R/read.write.R

read.write <-
function(rbind.result,link){
suppressWarnings(tryCatch(res<-read.table(link,header=T), error=function(e) write.table(matrix(c("ID","Question.number","type","Condition.Likert","Response"),nrow=1),link,quote=FALSE,row.names=FALSE,col.names=FALSE)))
res<-read.table(link,header=T)
res.new<-rbind(res,rbind.result)
write.table(res.new,paste(link),quote=FALSE,row.names=FALSE,col.names=TRUE)
}

Try the surveyeditor package in your browser

Any scripts or data that you put into this service are public.

surveyeditor documentation built on May 2, 2019, 2:31 p.m.