Skip to content

Commit 84e0755

Browse files
committed
Style code (GHA)
1 parent 55680ba commit 84e0755

File tree

2 files changed

+23
-26
lines changed

2 files changed

+23
-26
lines changed

R/generate_event_cc.R

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,19 @@
3232
#'
3333
#' #----------------------Example of two IAs and FA
3434
#' event_data <- data.frame(
35-
#'Population = c("Experimental 1", "Experimental 2", "Experimental 3", "Control"),
36-
#'IA1 = c(70, 75, 80, 85), # First Interim Analysis values indicating the number of events observed in each group
37-
#'IA2 = c(90, 95, 100, 105), # Second Interim Analysis values indicating the number of events observed in each group
38-
#'FA = c(135, 150, 165, 170)
39-
#')
35+
#' Population = c("Experimental 1", "Experimental 2", "Experimental 3", "Control"),
36+
#' IA1 = c(70, 75, 80, 85), # First Interim Analysis values indicating the number of events observed in each group
37+
#' IA2 = c(90, 95, 100, 105), # Second Interim Analysis values indicating the number of events observed in each group
38+
#' FA = c(135, 150, 165, 170)
39+
#' )
4040
#'
41-
#'hypothesis <- list(
42-
#' H1 = "Experimental 1 vs. Control",
43-
#' H2 = "Experimental 2 vs. Control",
44-
#' H3 = "Experimental 1 vs. Experimental 2"
45-
#')
41+
#' hypothesis <- list(
42+
#' H1 = "Experimental 1 vs. Control",
43+
#' H2 = "Experimental 2 vs. Control",
44+
#' H3 = "Experimental 1 vs. Experimental 2"
45+
#' )
4646
#'
47-
#'generate_event_table_cc(event_data, hypothesis)
48-
47+
#' generate_event_table_cc(event_data, hypothesis)
4948
generate_event_table_cc <- function(event_data, hypothesis) {
5049
result_df <- tibble(
5150
one_hypothesis = integer(),

R/generate_event_ol.R

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,22 @@
3434
#' )
3535
#'
3636
#' generate_event_table_ol(event_data, hypothesis)
37-
#'
37+
#'
3838
#' #----------------------Example of two IAs and FA
3939
#' event_data <- data.frame(
40-
#'Population = c("Population 1", "Population 2", "Population 1 Intersection 2", "Overall population"),
41-
#'IA1 = c(100, 110, 80, 225), # First Interim Analysis values indicating the number of events observed in each group
42-
#'IA2 = c(120, 130, 90, 240), # Second Interim Analysis values indicating the number of events observed in each group
43-
#'FA = c(200, 220, 160, 450)
44-
#')
40+
#' Population = c("Population 1", "Population 2", "Population 1 Intersection 2", "Overall population"),
41+
#' IA1 = c(100, 110, 80, 225), # First Interim Analysis values indicating the number of events observed in each group
42+
#' IA2 = c(120, 130, 90, 240), # Second Interim Analysis values indicating the number of events observed in each group
43+
#' FA = c(200, 220, 160, 450)
44+
#' )
4545
#'
46-
#'hypothesis <- list(
47-
#' H1 = "Efficacy in Population 1",
48-
#' H2 = "Efficacy in Population 2",
49-
#' H3 = "Efficacy in Overall population"
50-
#')
46+
#' hypothesis <- list(
47+
#' H1 = "Efficacy in Population 1",
48+
#' H2 = "Efficacy in Population 2",
49+
#' H3 = "Efficacy in Overall population"
50+
#' )
5151
#'
52-
#'generate_event_table_ol(event_data, hypothesis)
52+
#' generate_event_table_ol(event_data, hypothesis)
5353
#'
5454
generate_event_table_ol <- function(event_data, hypothesis) {
5555
result_df <- tibble(
@@ -92,5 +92,3 @@ generate_event_table_ol <- function(event_data, hypothesis) {
9292

9393
return(result_df)
9494
}
95-
96-

0 commit comments

Comments
 (0)