-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdd_animal_source.R
53 lines (46 loc) · 1.65 KB
/
dd_animal_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
animal_source<-
list(
data.frame(
Variable="SourceSpecies",
Label="Animal Source Species",
Definition="The Animal Source species",
Type="Single selection",
Mandatory="Yes"),
data.frame(
Variable="SourceSex",
Label="Source Species Sex",
Definition="The Source Sex",
Type="Single selection",
Mandatory="Yes"),
data.frame(
Variable="SourcePreviousMarkingCode",
Label="Animal Source Previous Marking Code",
Definition="A known marking code of the Animal Source, if any, before the current marking code, if any",
Type="String",
Mandatory="No"),
data.frame(
Variable="AnimalSourceFromGroupSource", #(of the GRoup)
Label="Animal Source From Group Source",
Definition="Answer to the question: 'Is the Animal Source coming from a Group Source
to be now considered as a specific individual?'",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceFromGroupSourceGroupID", #(of the GRoup)
Label="Animal Source From Group Source Group ID",
Definition="The ID of the Group Source that the Animal Source belonged to",
Type="String",
Mandatory="Yes")
)
animal_source<-
animal_source %>% 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())