-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathradar_dataprep.R
More file actions
185 lines (167 loc) · 5.4 KB
/
radar_dataprep.R
File metadata and controls
185 lines (167 loc) · 5.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# Requires that the survey results are loaded into the following data frame
# mysurveys
# Generates a matrix with matrix sums for all checkbox categories (rows) for all questions (cols)
myanswersums = colSums(
mysurveys[,c(
"asctr_1_1_locus_options___1",
"asctr_1_1_locus_options___2",
"asctr_1_1_locus_options___3",
"asctr_1_1_locus_options___4",
"asctr_1_1_sust_options___1",
"asctr_1_1_sust_options___2",
"asctr_1_1_sust_options___3",
"asctr_1_1_sust_options___4",
"asctr_2_1_locus_options___1",
"asctr_2_1_locus_options___2",
"asctr_2_1_locus_options___3",
"asctr_2_1_locus_options___4",
"asctr_2_1_sust_options___1",
"asctr_2_1_sust_options___2",
"asctr_2_1_sust_options___3",
"asctr_2_1_sust_options___4",
"asctr_3_1_locus_options___1",
"asctr_3_1_locus_options___2",
"asctr_3_1_locus_options___3",
"asctr_3_1_locus_options___4",
"asctr_3_1_sust_options___1",
"asctr_3_1_sust_options___2",
"asctr_3_1_sust_options___3",
"asctr_3_1_sust_options___4",
"asctr_4_1_locus_options___1",
"asctr_4_1_locus_options___2",
"asctr_4_1_locus_options___3",
"asctr_4_1_locus_options___4",
"asctr_4_1_sust_options___1",
"asctr_4_1_sust_options___2",
"asctr_4_1_sust_options___3",
"asctr_4_1_sust_options___4",
"asctr_5_1_locus_options___1",
"asctr_5_1_locus_options___2",
"asctr_5_1_locus_options___3",
"asctr_5_1_locus_options___4",
"asctr_5_1_sust_options___1",
"asctr_5_1_sust_options___2",
"asctr_5_1_sust_options___3",
"asctr_5_1_sust_options___4",
"asctr_6_1_locus_options___1",
"asctr_6_1_locus_options___2",
"asctr_6_1_locus_options___3",
"asctr_6_1_locus_options___4",
"asctr_6_1_sust_options___1",
"asctr_6_1_sust_options___2",
"asctr_6_1_sust_options___3",
"asctr_6_1_sust_options___4",
"asctr_7_1_locus_options___1",
"asctr_7_1_locus_options___2",
"asctr_7_1_locus_options___3",
"asctr_7_1_locus_options___4",
"asctr_7_1_sust_options___1",
"asctr_7_1_sust_options___2",
"asctr_7_1_sust_options___3",
"asctr_7_1_sust_options___4",
"asctr_8_1_locus_options___1",
"asctr_8_1_locus_options___2",
"asctr_8_1_locus_options___3",
"asctr_8_1_locus_options___4",
"asctr_8_1_sust_options___1",
"asctr_8_1_sust_options___2",
"asctr_8_1_sust_options___3",
"asctr_8_1_sust_options___4",
"asctr_9_1_locus_options___1",
"asctr_9_1_locus_options___2",
"asctr_9_1_locus_options___3",
"asctr_9_1_locus_options___4",
"asctr_9_1_sust_options___1",
"asctr_9_1_sust_options___2",
"asctr_9_1_sust_options___3",
"asctr_9_1_sust_options___4",
"asctr_10_1_locus_options___1",
"asctr_10_1_locus_options___2",
"asctr_10_1_locus_options___3",
"asctr_10_1_locus_options___4",
"asctr_10_1_sust_options___1",
"asctr_10_1_sust_options___2",
"asctr_10_1_sust_options___3",
"asctr_10_1_sust_options___4",
"rc_1_1_locus_options___1",
"rc_1_1_locus_options___2",
"rc_1_1_locus_options___3",
"rc_1_1_locus_options___4",
"rc_1_1_sust_options___1",
"rc_1_1_sust_options___2",
"rc_1_1_sust_options___3",
"rc_1_1_sust_options___4",
"ci_1_1_locus_options___1",
"ci_1_1_locus_options___2",
"ci_1_1_locus_options___3",
"ci_1_1_locus_options___4",
"ci_1_1_sust_options___1",
"ci_1_1_sust_options___2",
"ci_1_1_sust_options___3",
"ci_1_1_sust_options___4",
"ci_2_1_locus_options___1",
"ci_2_1_locus_options___2",
"ci_2_1_locus_options___3",
"ci_2_1_locus_options___4",
"ci_2_1_sust_options___1",
"ci_2_1_sust_options___2",
"ci_2_1_sust_options___3",
"ci_2_1_sust_options___4",
"og_1_1_locus_options___1",
"og_1_1_locus_options___2",
"og_1_1_locus_options___3",
"og_1_1_locus_options___4",
"og_1_1_sust_options___1",
"og_1_1_sust_options___2",
"og_1_1_sust_options___3",
"og_1_1_sust_options___4",
"ts_1_1_locus_options___1",
"ts_1_1_locus_options___2",
"ts_1_1_locus_options___3",
"ts_1_1_locus_options___4",
"ts_1_1_sust_options___1",
"ts_1_1_sust_options___2",
"ts_1_1_sust_options___3",
"ts_1_1_sust_options___4",
"mri_1_1_locus_options___1",
"mri_1_1_locus_options___2",
"mri_1_1_locus_options___3",
"mri_1_1_locus_options___4",
"mri_1_1_sust_options___1",
"mri_1_1_sust_options___2",
"mri_1_1_sust_options___3",
"mri_1_1_sust_options___4"
)]
)
myanswersumsmatrix = matrix( myanswersums, nrow = 8, ncol = 16 )
myanswersumsdf = as.data.frame(myanswersumsmatrix)
colnames(myanswersumsdf)=c(
"Research/Regulatory Compliance" ,
"Service Request / Fulfillment" ,
"Program Evaluation" ,
"Grants and Contracts Systems",
"CTMS Components",
"Electronic Data Capture",
"Biobanking Systems",
"Data Repositories and EHR Data",
"Clinical Medical Information Systems (EHR Systems Research Interface)",
"Communication",
"Extramural data collaborations",
"Security",
"IT Infrastructure",
"Governance",
"Education",
"Informatics innovation"
)
row.names(myanswersumsdf)=c(
"Informatics",
"Research Office",
"CIO/IT",
"Other locus",
"Institutional",
"Fee for Service / Charge Back",
"Grants",
"Other source"
)
write.csv(myanswersumsdf, file='output/quantitative_sums.csv',
row.names = TRUE, col.names = TRUE, sep = ",")