Skip to content

Commit f4ff59d

Browse files
committed
update pkgdown build
1 parent a80076a commit f4ff59d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+661
-904
lines changed

R/prep_data.R

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,33 @@ reshape_ald_to_wide <- function(df) {
7575
bind_cols(variable_df, y_df)
7676
}
7777

78+
##TODO: check this
79+
reshape_ald_to_long <- function(df) {
80+
81+
# Separate the 'colname' into 'stat', 'variable', and 'study' columns
82+
variable_cols <- df %>%
83+
select(-starts_with("y")) %>%
84+
pivot_longer(cols = everything(),
85+
names_to = "colname",
86+
values_to = "value") %>%
87+
separate(colname, into = c("stat", "variable"), sep = "\\.") %>%
88+
select(variable, stat, value) %>%
89+
mutate(study = NA) # Set study to NA for these rows
90+
91+
# process the columns related to 'y' (stat, study, and variable)
92+
y_cols <- df %>%
93+
select(starts_with("y")) %>%
94+
pivot_longer(cols = everything(),
95+
names_to = "colname",
96+
values_to = "value") %>%
97+
separate(colname, into = c("variable", "study", "stat"), sep = "\\.") %>%
98+
select(variable, stat, study, value)
99+
100+
bind_rows(variable_cols, y_cols) %>%
101+
arrange(variable, stat, study)
102+
}
103+
104+
78105
# Get study comparator treatment names
79106

80107
#

docs/404.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/LICENSE.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/Binary_data_Remiro-Azocar.html

Lines changed: 233 additions & 542 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/Binary_data_example.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/Continuous_data_example.html

Lines changed: 132 additions & 217 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/Count_data_example.html

Lines changed: 44 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/comparison-with-other-packages.html

Lines changed: 92 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/index.html

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/authors.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)