Script for creating only one instrument file
This commit is contained in:
parent
928f1eb214
commit
96ee0ee3c3
17
one_instrument.R
Normal file
17
one_instrument.R
Normal 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)
|
Loading…
Reference in New Issue
Block a user