Code
# Create a table for the day of events
gt(schedule_day_1) |>
tab_header(title = md("<br>Workshop Day 1<br>Monday, June 10, 2024.<br>All Times EST<br><br>")) |> # <- insert the date
fmt_time(columns = c(start_time, end_time), time_style = "h_m_p") |>
fmt_duration(
columns = duration,
input_units = "minutes",
output_units = c("hours", "minutes")
|>
) cols_move(columns = duration, after = end_time) |>
cols_merge(
columns = c(t_number, t_type, t_title, t_speakers, t_speaker_titles, t_companies),
pattern = md("<<{1} - >>{2}<br><< {3}<br>{4}<br>{5}, {6}>>")
|>
) cols_label(
~ "Start Time",
start_time ~ "End Time",
end_time ~ "Duration",
duration ~ ""
t_number |>
) cols_align(align = "center") |>
cols_width(
c(start_time, end_time, duration) ~ px(90),
everything() ~ px(600)
|>
) opt_align_table_header(align = "left") |>
tab_options(
heading.background.color = "lightblue",
column_labels.background.color = "gray85"
|>
) tab_style(
locations = cells_body(rows = t_type == "Break"),
style = cell_fill(color = "bisque")
)
Workshop Day 1 Monday, June 10, 2024. All Times EST |
|||
---|---|---|---|
Start Time | End Time | Duration | |
11:00 AM | 2:00 PM | 3h | 1A - Workshop Causal Inference in R Lucy D'Agostino McGowan, Malcom Barrett Assistant Professor, Research Software Engineer, Wake Forest University, Stanford University |
11:00 AM | 2:00 PM | 3h | 1B - Workshop title speakers speaker_titles, companies |
2:00 PM | 2:30 PM | 30m | Break |
2:30 PM | 4:30 PM | 2h | 2A - Workshop title speakers speaker_titles, companies |
2:30 PM | 5:30 PM | 3h | 2B - Workshop title speakers speaker_titles, companies |