Script for creating only one instrument file

This commit is contained in:
AG Damsbo 2022-08-17 11:52:41 +02:00
parent 928f1eb214
commit 96ee0ee3c3

17
one_instrument.R Normal file
View File

@ -0,0 +1,17 @@
# One instrument REDCap
icname<-colnames(read.csv("examlpe instrument.csv"))
dd<-data.frame(matrix(ncol = length(icname),
nrow=ncol(dta))) ## Data frame to collect all
colnames(dd)<-icname
## Variable names
dd[1]<-colnames(dta)
## Form Name
dd[2]<-"ddsc"
## Field Type
dd[4]<-"text"
dd[5]<-colnames(dta)