slice_to_box: Slice to box

View source: R/slice_to_box.R

slice_to_boxR Documentation

Slice to box

Description

Converts Q1/Q2/Q3 format of quantiles (as generated by summaryM) to Q2 [Q1, Q3] format.

Usage

slice_to_box(x)

Arguments

x

A character vector.

See Also

summaryM_to_df

Examples

require(Hmisc)
require(knitr)
getHdata(pbc)
tbl1_formula <- bili + albumin + stage + protime + sex + age + spiders ~ drug
tbl1_formula %>% 
  summaryM(data=pbc) %>% 
  summaryM_to_df(html_space = FALSE, digits = 3) %>% 
  sapply(slice_to_box) %>% 
  kable

thomasgstewart/tgsify documentation built on Oct. 26, 2024, 8:15 p.m.