-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdd_surv_act_clusters_environmental_source.R
375 lines (320 loc) · 19 KB
/
dd_surv_act_clusters_environmental_source.R
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
cluster_environmental_source_records<-
list(
# SPATIAL
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceClustering",
Label="Surveillance Activity Environmental Source Clustering",
Definition="Answer to the question:'Are Environmental Sources of the Surveillance Activity
clustered?'",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceSpatialClustering",
Label="Surveillance Activity Environmental Source Spatial Clustering",
Definition="Answer to the question:'Are Environmental Sources of the Surveillance Activity
spatially clustered (in nested or non-nested clusters)? For example, Environmental Sources
represent ponds and ponds are clustered by protected areas",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceSpatialNestedClustering",
Label="Surveillance Activity Environmental Source Spatial Nested Clustering",
Definition="Answer to the question:'Are Environmental Sources of the Surveillance Activity
spatially clustered in nested levels?' For example, Environmental Sources
are ponds and ponds are clustered by protected areas",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceSpatialNumberLevelsNestedClusters",
Label="Surveillance Activity Environmental Source Spatial Number Levels Nested Clusters",
Definition="The number of spatial nested cluster levels grouping Environmental Sources",
Type="Integer",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceSpatialNestedClusterLevelsRepresent",
Label="Surveillance Activity Environmental Source Spatial Nested Clusters Represent",
Definition="Description of what each level of spatial nested cluster grouping Environmental Sources is.
For example, Level 1 are protected areas Level 2 are grid cells within areas",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceSpatialNumberCategoriesPerNestedClusterLevel",
Label="Surveillance Activity Environmental Source Spatial Number Categories Per Nested Cluster Level",
Definition="Description of the number of Categories per each level of nested clusters
grouping Environmental Sources. For example, Level 1 contains 4 areas; in Level 2, area 1 contains 20 grid cells,
area 2 contains 15 grid cells, etc.",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourcePerSpatialNestedClusterCategoryKnown",
Label="Surveillance Activity Environmental Sources Per Spatial Nested Cluster Category",
Definition="Answer to the question: 'Is the number of Environmental Sources per each category within each
spatial nested cluster grouping Environmental Sources known?' The opposite is opportunistic
and added as the Surveillance Activity develops",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourcePerSpatialNestedClusterCategory",
Label="Surveillance Activity Environmental Source Per Spatial Nested Cluster Category",
Definition="Description of the Environmental Sources per each category of nested spatial clusters
grouping Environmental Sources. For example, 3 Environmental Sources
per grid cell and the total number of grid cells is ten for a total of 30 Environmental Sources",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceSpatialNestedClustersOtherAttributes",
Label="Surveillance Activity Environmental Source Spatial Nested Clusters Other Attributes",
Definition="Answer to the question: 'Do spatial nested clusters grouping Environmental Sources
contain other properties not included in the data model?'",
Type="Boolean",
Mandatory="No"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceSpatialNestedClustersListDefinitionOtherAttributes",
Label="Surveillance Activity Environmental Source Spatial Nested Clusters Definition Other Attributes",
Definition="Description of the other attributes of spatial nested clusters
grouping Environmental Sources not included in the data model. Provide a list with the
name of the attributes and their definition",
Type="String",
Mandatory="No"),
#spatial non nested
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceSpatialNonNestedClustering",
Label="Surveillance Activity Environmental Source Spatial Non Nested Clustering",
Definition="Answer to the question:'Are Environmental Sources of the Surveillance Activity
spatially clustered in non-nested groups?' For example, Environmental Sources are grouped
by cities and also by zip codes",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceSpatialNumberNonNestedClusters",
Label="Surveillance Activity Environmental Source Spatial Number Non Nested Clustering",
Definition="The number of non-nested spatial clusters grouping Environmental Sources",
Type="Integer",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceSpatialNonNestedClusterRepresent",
Label="Surveillance Activity Environmental Source Spatial Non Nested Clusters Represent",
Definition="Description of what each spatial non-nested cluster grouping Environmental Sources is.
For example, cluster 1 are grid cells cluster 2 are fenological areas",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceSpatialNumberCategoriesPerNonNestedCluster",
Label="Surveillance Activity Environmental Source Spatial Number Categories Per Non Nested Cluster",
Definition="Description of the number of Categories per each non-nested cluster grouping Environmental Sources. For
example, cluster 1 contains 20 cells; cluster 2 contains 2 fenological areas",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourcePerSpatialNonNestedClusterCategoryKnown",
Label="Surveillance Activity Environmental Source Per Spatial Number Categories Per Non Nested Cluster",
Definition="Answer to the question: 'Is the number of Environmental Sources per each category of each
spatial non-nested cluster grouping Environmental Sources known?' The opposite is opportunistic
and added as the Surveillance Activity develops",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourcePerSpatialNonNestedClusterCategory",
Label="Surveillance Activity Environmental Source Per Spatial Non Nested Cluster Category",
Definition="The number of Environmental Sources per each category of each spatial non-nested
cluster that are grouping Environmental Sources",
Type="String",
Mandatory="Yes"),
# data.frame(
# Variable="SurveillanceActivityEnvironmental SourceSpatialNestedClustersOtherAttributes",
# Label="Surveillance Activity Environmental Source Spatial Nested Clusters Other Attributes",
# Definition="Answer to the question: 'Do spatial nested clusters grouping Environmental Sources
# contain other properties not included in the data model?'",
# Type="Boolean",
# Mandatory="Yes"),
#
# data.frame(
# Variable="SurveillanceActivityEnvironmental SourceSpatialNestedClustersListDefinitionOtherAttributes",
# Label="Surveillance Activity Environmental Source Spatial Nested Clusters Definition Other Attributes",
# Definition="Description of the other attributes of spatial nested clusters
# grouping Environmental Sources not included in the data model. Provide a list with the
# name of the attributes and their definition",
# Type="String",
# Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceSpatialNonNestedClustersOtherAttributes",
Label="Surveillance Activity Environmental Source Spatial NonNested Clusters Other Attributes",
Definition="Answer to the question: 'Do spatial non-nested clusters grouping Environmental Sources
contain other properties not included in the data model?'",
Type="Boolean",
Mandatory="No"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceSpatialNonNestedClustersListDefinitionOtherAttributes",
Label="Surveillance Activity Environmental Source Spatial NonNested Clusters Definition Other Attributes",
Definition="Description of the other attributes of spatial non-nested clusters
grouping Environmental Sources not included in the data model. Provide a list with the
name of the attributes and their definition",
Type="String",
Mandatory="No"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceSpatialClustersFileProvided",
Label="Surveillance Activity Environmental Source Spatial Clusters File Provided",
Definition="Answer to the question: 'Is a file containing the list of nested,
non-nested, or both types of spatial clusters grouping Environmental Sources and their
corresponding categories provided in a file?'",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceSpatialClustersSpatialProjection",
Label="Surveillance Activity Environmental Source Spatial Clusters Spatial Projection",
Definition="The spatial projection of the spatial nested and non-nested clusters
grouping Environmental Sources provided in the file",
Type="String",
Mandatory="No"),
# TEMPORAL:
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceTemporalClustering",
Label="Surveillance Activity Environmental Source Temporal Clustering",
Definition="Answer to the question:'Are Environmental Sources of the Surveillance Activity
temporally clustered (in nested or non-nested clusters)? For example, Environmental Sources
are clustered by decade and month over the years",
Type="Boolean",
Mandatory="Yes"),
# temporal nested
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceTemporalNestedClustering",
Label="Surveillance Activity Environmental Source Temporal Nested Clustering",
Definition="Answer to the question:'Are Environmental Sources of the Surveillance Activity
temporally clustered in nested levels?' For example, Environmental Sources
are clustered by month and then months are clustered by year",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceNumberTemporalNestedClustersLevels",
Label="Surveillance Activity Environmental Source Number Temporal Nested Clusters Levels",
Definition="The number of levels of temporal nested clusters grouping Environmental Sources",
Type="Integer",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceTemporalNestedClusterLevelsRepresent",
Label="Surveillance Activity Environmental Source Temporal Nested Clusters Represent",
Definition="Description of what each level of temporal nested clusters grouping Environmental Sources is.
For example, Level 1 are seasons Level 2 are months within seasons",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceTemporalNumberCategoriesPerNestedClusterLevel",
Label="Surveillance Activity Environmental Source Temporal Number Categories Per Nested Cluster Level",
Definition="Description of the number of Categories per each level of temporal nested clusters
grouping Environmental Sources. For example, Level 1 contains 4 seasons; in Level 2, season 1 contains 3 months,
season 2 contains 3 months, etc.",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourcePerTemporalNestedClusterCategoryKnown",
Label="Surveillance Activity Environmental Source Per Temporal Nested Cluster Category",
Definition="Answer to the question: 'Is the number of Environmental Sources per each category of each
temporal cluster level grouping Environmental Sources known?' The opposite is opportunistic and added
as the Surveillance Activity develops",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourcePerTemporalNestedClusterCategory",
Label="Surveillance Activity Environmental Source per Temporal Nested Cluster Category",
Definition="Description of the number of Environmental Sources per each category of each temporal
cluster level grouping Environmental Sources. For example, 3 Environmental Sources for season 1 that include 3 Environmental Sources during
each of the 3 months for a total of 9 Environmental Sources per season. The time frame
between each visit to a neighboor within a single visit to a city is 2 days",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceTemporalNestedClustersOtherAttributes",
Label="Surveillance Activity Environmental Source Temporal Nested Clusters Other Attributes",
Definition="Answer to the question: 'Do temporal nested clusters grouping Environmental Sources
contain other properties not included in the data model?'",
Type="Boolean",
Mandatory="No"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceTemporalNestedClustersListDefinitionOtherAttributes",
Label="Surveillance Activity Environmental Source Temporal Nested Clusters Definition Other Attributes",
Definition="Description of the other attributes of temporal nested clusters
grouping Environmental Sources not included in the data model. Provide a list with the
name of the attributes and their definition",
Type="String",
Mandatory="No"),
# temporal non nested
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceTemporalNonNestedClustering",
Label="Surveillance Activity Environmental Source Temporal NonNested Clustering",
Definition="Answer to the question:'Are Environmental Sources of the Surveillance Activity
temporally clustered in non-nested groups?' For example, Environmental Sources
are clustered by date of the year and also by decade",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceNumberTemporalNonNestedClusters",
Label="Surveillance Activity Environmental Source Number Temporal NonNested Clusters",
Definition="The number of temporal non-nested clusters grouping Environmental Sources",
Type="Integer",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceTemporalNonNestedClustersRepresent",
Label="Surveillance Activity Environmental Source Temporal NonNested Clusters Represent",
Definition="Description of what each temporal non-nested cluster grouping Environmental Sources is.
For example, Cluster 1 are dates of the year and cluster 2 are decades",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceTemporalNumberCategoriesPerNonNestedCluster",
Label="Surveillance Activity Environmental Source Temporal Number Categories Per NonNested Cluster",
Definition="Description of the number of Categories per each non-nested clusters
grouping Environmental Sources. For example, date of the year contains 365 options; decade contains
10 years, etc.",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourcePerTemporalNonNestedClusterCategoryKnown",
Label="Surveillance Activity Environmental Source per Temporal NonNested Cluster Category",
Definition="Answer to the question: 'Is the number of Environmental Sources per each category within each
temporal non-nested cluster grouping Environmental Sources known?' The opposite is opportunistic
and added as the Surveillance Activity develops",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourcePerTemporalNonNestedClusterCategory",
Label="Surveillance Activity Environmental Source per Temporal NonNested Cluster Category",
Definition="Description of the Environmental Sources per each category of the non-nested temporal clusters
grouping Environmental Sources. For example, 1 Environmental Source for each date of the year and 365 Environmental Sources per year
of the decade",
Type="String",
Mandatory="No"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceTemporalNonNestedClustersOtherAttributes",
Label="Surveillance Activity Environmental Source Temporal NonNested Clusters Other Attributes",
Definition="Answer to the question: 'Do temporal non-nested clusters grouping Environmental Sources
contain other properties not included in the data model?'",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceTemporalNonNestedClustersListDefinitionOtherAttributes",
Label="Surveillance Activity Environmental Source Temporal NonNested Clusters Definition Other Attributes",
Definition="Description of the other attributes of temporal non-nested clusters
grouping Environmental Sources not included in the data model. Provide a list with the
name of the attributes and their definition",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="SurveillanceActivityEnvironmentalSourceTemporalClustersFileProvided",
Label="Surveillance Activity Environmental Source Temporal Clusters File Provided",
Definition="Answer to the question: 'Is a file containing the list of nested,
non-nested, or both types of temporal clusters grouping Environmental Sources and their
corresponding categories provided in a file?'",
Type="Boolean",
Mandatory="Yes"))
cluster_environmental_source_records<-
cluster_environmental_source_records |> bind_rows() |>
gt::gt() |>
gt::tab_options(table.font.size = 8) |>
gt::cols_width(Variable ~ gt::pct(22),
Label ~ gt::pct(20),
Definition ~ gt::pct(30),
Type~ gt::pct(13),
Mandatory~ gt::pct(15)) |>
gt::tab_style(
style = cell_text(size = px(15), weight = "bold"),
locations = cells_column_labels())