-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdd_animal_source_record_clustering.R
61 lines (52 loc) · 2.09 KB
/
dd_animal_source_record_clustering.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
animal_source_record_clustering<-
list(
data.frame(
Variable="AnimalSourceRecordClusterCode",
Label="Animal Source Record Cluster Code",
Definition="User-provided Animal Source Record Cluster Code",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceRecordClusterCrossReferenceID",
Label="Animal Source Record Cluster Cross Reference ID",
Definition="The identifier of a cluster grouping Animal Source Records in another
system (e.g., database/document/other)",
Type="String",
Mandatory="No"),
data.frame(
Variable="animalSourceRecordClusterCrossReferenceIDOrigin",
Label="animal Source Record Cluster Cross Reference ID Origin",
Definition="The database/document/other where other identification
for the same cluster grouping Animal Source Records is used",
Type="String",
Mandatory="No"),
data.frame(
Variable="AnimalSourceRecordClusterType",
Label="Animal Source Record Cluster Type",
Definition="The type of cluster (Spatial or Temporal)",
Type="Single selection",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceRecordClusterUnit",
Label="Animal Source Record Cluster Unit",
Definition="The unit the cluster represents (e.g., a grid cell, a market, etc.)",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceRecordClusterComments",
Label="Animal Source Record Cluster Comments",
Definition="Any other comments regarding the Animal Source clusters",
Type="String",
Mandatory="No"))
animal_source_record_clustering<-
animal_source_record_clustering %>% 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())