-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdd_location_clustering.R
61 lines (52 loc) · 1.89 KB
/
dd_location_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
location_clustering<-
list(
data.frame(
Variable="LocationClusterCode",
Label="Location Cluster Code",
Definition="User-provided Location Cluster Code",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="LocationClusterCrossReferenceID",
Label="Location Cluster Cross Reference ID",
Definition="The identifier of a cluster grouping Locations in another
system (e.g., database/document/other)",
Type="String",
Mandatory="No"),
data.frame(
Variable="LocationClusterCrossReferenceIDOrigin",
Label="Location Cluster Cross Reference ID Origin",
Definition="The database/document/other where other identification
for the same cluster grouping Locations is used",
Type="String",
Mandatory="No"),
data.frame(
Variable="LocationClusterType",
Label="Location Cluster Type",
Definition="The type of cluster (Spatial or Temporal)",
Type="Single selection",
Mandatory="Yes"),
data.frame(
Variable="LocationClusterUnit",
Label="Location Cluster Unit",
Definition="The unit the cluster represents (e.g., a grid cell, a market, etc.)",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="LocationClusterComments",
Label="Location Cluster Comments",
Definition="Any other comments regarding the Location Source clusters",
Type="String",
Mandatory="No"))
location_clustering<-
location_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())