Dear clinify team,
Currently when using clin_group_by() with clin_auto_page(), if clin_auto_page drop is set to TRUE then running write_clindoc results in an error “Error in x$data[rows, columns, drop = FALSE] : subscript out of bounds”. Using these options together would be ideal for many by-visit continuous summaries like Vital Signs or Labs, where the Parameter is a subtitle and we want to keep all summary stats (n, mean, sd, median, min, max) for a visit together on a page. For example:
ct <- clintable(df) |>
clin_group_by("PARAM") |>
clin_auto_page("AVISITN", drop=TRUE)
write_clindoc(
x = ct,
file =”table.docx"
)
Is there a known work-around for this? Or perhaps I’ve just missed something?
Many thanks for your help!
Dear clinify team,
Currently when using clin_group_by() with clin_auto_page(), if clin_auto_page drop is set to TRUE then running write_clindoc results in an error “Error in x$data[rows, columns, drop = FALSE] : subscript out of bounds”. Using these options together would be ideal for many by-visit continuous summaries like Vital Signs or Labs, where the Parameter is a subtitle and we want to keep all summary stats (n, mean, sd, median, min, max) for a visit together on a page. For example:
ct <- clintable(df) |>
clin_group_by("PARAM") |>
clin_auto_page("AVISITN", drop=TRUE)
write_clindoc(
x = ct,
file =”table.docx"
)
Is there a known work-around for this? Or perhaps I’ve just missed something?
Many thanks for your help!