Learn R Programming

⚠️There's a newer version (0.6.15) of this package.Take me there.

rtables

[![Check

Copy Link

Version

Install

install.packages('rtables')

Monthly Downloads

2,094

Version

0.6.7

License

Apache License 2.0 | file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Joe Zhu

Last Published

December 14th, 2025

Functions in rtables (0.6.7)

add_overall_col

Add overall column
analyze_colvars

Generate rows analyzing different variables across columns
basic_table

Layout with 1 column and zero rows
append_topleft

Append a description to the 'top-left' materials for the layout
as_html

Convert an rtable object to a shiny.tag HTML object
asvec

Convert to a vector
add_overall_level

Add a virtual "overall" level to split
AnalyzeVarSplit

Define a subset tabulation/analysis
additional_fun_params

Additional parameters within analysis and content functions (afun/cfun)
analyze

Generate rows analyzing variables across columns
InstantiatedColumnInfo-class

Instantiated column info
compat_args

Compatibility argument conventions
compare_rtables

Compare two rtables
cbind_rtables

Column-bind two TableTree objects
brackets

Retrieve and assign elements of a TableTree
build_table

Create a table from a layout and data
cell_values

Retrieve cell values by row and column path
do_base_split

Apply basic split (for use in custom split functions)
df_to_tt

Create an ElementaryTable from a data.frame
drop_facet_levels

Pre-processing function for use in make_split_fun
nrow,VTableTree-method

Table dimensions
constr_args

Constructor argument conventions
clear_indent_mods

Clear all indent modifiers from a table
collect_leaves

Collect leaves of a TableTree
clayout

Column information/structure accessors
content_table

Retrieve or set content table from a TableTree
format_rcell

Format rcell objects
export_as_docx

Export as word document
obj_name,VNodeInfo-method

Methods for generics in the formatters package
VarStaticCutSplit-class

Splits for cutting by values of a numeric variable
indent

Change indentation of all rrows in an rtable
data.frame_export

Generate a result data frame
in_rows

Create multiple rows in analysis or summary functions
horizontal_sep

Access or recursively set header-body separator for tables
head

Head and tail methods
counts_wpcts

Analysis function to count levels of a factor with percentage of the column total
find_degen_struct

Find degenerate (sub)structures within a table
gen_args

General argument conventions
get_formatted_cells

Get formatted cells
custom_split_funs

Custom split functions
make_afun

Create a custom analysis function wrapping an existing function
lyt_args

Layouting function argument conventions
insert_rrow

Deprecated: Insert rrows at (before) a specific location
label_at_path

Label at path
is_rtable

Check if an object is a valid rtable
length,CellValue-method

Length of a Cell value
internal_methods

Combine SplitVector objects
list_wrap_x

Returns a function that coerces the return values of a function to a list
indent_string

Indent strings
insert_row_at_path

Insert row at path
matrix_form,VTableTree-method

Transform an rtable to a list of matrices which can be used for outputting
manual_cols

Manual column declaration
make_col_df

Column layout summary
row_paths

Get a list of table row/column paths
no_colinfo

Exported for use in tern
names,VTableNodeInfo-method

Names of a TableTree
make_split_fun

Create a custom splitting function
row_footnotes

Referential footnote accessors
obj_avar

Row attribute accessors
LabelRow

Row classes and constructors
pag_tt_indices

Pagination of a TableTree
rheader

Create a header
make_split_result

Construct split result object
prune_table

Recursively prune a TableTree
rrow

Create an rtable row
qtable_layout

Generalized frequency table
rbindl_rtables

Row-bind TableTree and related objects
row_paths_summary

Print row/column paths summary
sanitize_table_struct

Sanitize degenerate table structures
cont_n_allcols

Score functions for sorting TableTrees
section_div

Section dividers accessor and setter
sf_args

Split function argument conventions
simple_analysis

Default tabulation
rtables-package

rtables: Reporting Tables
rcell

Cell value constructors
rrowl

Create an rtable row from a vector or list of values
reexports

Objects exported from other packages
sort_at_path

Sorting a table at a specific path
rtable

Create a table
spl_context

.spl_context within analysis and split functions
table_shell

Table shells
split_cols_by

Declaring a column-split based on levels of a variable
spl_variable

Variable associated with a split
split_funcs

Split functions
ElementaryTable-class

TableTree classes
split_rows_by_multivar

Associate multiple variables with rows
spl_context_to_disp_path

Translate spl_context to a path to display in error messages
summarize_row_groups

Add a content row of summary counts
split_cols_by_multivar

Associate multiple variables with columns
all_zero_or_na

Trimming and pruning criteria
table_structure

Summarize table
split_rows_by

Add rows according to levels of a variable
toString,VTableTree-method

Convert an rtable object to a string
export_as_tsv

Create enriched flat value table with paths
tt_to_flextable

Create a flextable from an rtables table
trim_levels_in_facets

Trim levels of another variable from each facet (post-processing split step)
trim_levels_to_map

Trim levels to map
tree_children

Retrieve or set the direct children of a tree-style object
trim_rows

Trim rows from a populated table without regard for table structure
value_formats

Value formats
validate_table_struct

Validate and assert valid table structure
update_ref_indexing

Update footnote indices on a built table
tt_at_path

Access or set table elements at specified path
top_left

Top left material
vars_in_layout

List variables required by a pre-data table layout
split_cols_by_cuts

Split on static or dynamic cuts of the data
CellValue

Constructor for Cell Value
select_all_levels

Add combination levels to split
Viewer

Display an rtable object in the Viewer pane in RStudio or in a browser
EmptyColInfo

Empty table, column, split objects
add_existing_table

Add an already calculated table to the layout
add_colcounts

Add the column population counts to the header
add_combo_facet

Add a combination facet in post-processing
MultiVarSplit

Split between two or more different variables
ManualSplit

Manually defined split
VarLevelSplit-class

Split on levels within a variable