st_align: Add column alignment information to st object

View source: R/table-object.R

st_alignR Documentation

Add column alignment information to st object

Description

See the align argument to stable(). This function may be called several times to specify column alignment.

Usage

st_align(x, ...)

st_center(x, ...)

st_left(x, ...)

st_right(x, ...)

Arguments

x

an stobject.

...

named arguments passed to cols_align().

Value

An updated version of x.

Examples

library(dplyr)

ob <- st_new(ptdata())

ob %>% st_align(.default = 'l') %>% stable()

ob %>% st_center(N = 'l') %>% stable()

# This is only to illustrate multiple calls
ob %>%
  st_center(N = 'l') %>%
  st_align(STUDY = col_ragged(2), WT = 'r') %>%
  st_right(N = 'c') %>%
  stable()


metrumresearchgroup/pmtables documentation built on Oct. 27, 2024, 5:16 p.m.