Learn R Programming

rtables

[![Check

Copy Link

Version

Install

install.packages('rtables')

Monthly Downloads

2,573

Version

0.6.13

License

Apache License 2.0 | file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Joe Zhu

Last Published

June 20th, 2025

Functions in rtables (0.6.13)

ManualSplit

Manually defined split
add_overall_level

Add overall or combination levels to split groups
append_topleft

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

Retrieve and assign elements of a TableTree
basic_table

Layout with 1 column and zero rows
additional_fun_params

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

Convert to a vector
AnalyzeVarSplit

Define a subset tabulation/analysis
analyze

Generate rows analyzing variables across columns
analyze_colvars

Generate rows analyzing different variables across columns
build_table

Create a table from a layout and data
cell_values

Retrieve cell values by row and column path
compare_rtables

Compare two rtables
InstantiatedColumnInfo-class

Instantiated column info
cbind_rtables

Column-bind two TableTree objects
coltree_structure

Display column tree structure
clayout

Column information/structure accessors
clear_indent_mods

Clear all indent modifiers from a table
as_html

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

Value and Visibility of specific column counts by path
collect_leaves

Collect leaves of a TableTree
custom_split_funs

Custom split functions
do_base_split

Apply basic split (for use in custom split functions)
data.frame_export

Generate a result data frame
nrow,VTableTree-method

Table dimensions
compat_args

Compatibility argument conventions
content_table

Retrieve or set content table from a TableTree
constr_args

Constructor argument conventions
counts_wpcts

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

Create an ElementaryTable from a data.frame
drop_facet_levels

Pre-processing function for use in make_split_fun
facet_colcounts_visible<-

Set visibility of column counts for a group of sibling facets
gen_args

General argument conventions
head

Head and tail methods
find_degen_struct

Find degenerate (sub)structures within a table
horizontal_sep

Access or recursively set header-body separator for tables
get_formatted_cells

Get formatted cells
facet_colcount

Get or set column count for a facet in column space
format_rcell

Format rcell objects
obj_name,VNodeInfo-method

Methods for generics in the formatters package
VarStaticCutSplit-class

Splits for cutting by values of a numeric variable
in_rows

Create multiple rows in analysis or summary functions
insert_row_at_path

Insert row at path
indent_string

Indent strings
is_rtable

Check if an object is a valid rtable
indent

Change indentation of all rrows in an rtable
list_wrap_x

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

Label at path
insert_rrow

Insert rrows at (before) a specific location
length,CellValue-method

Length of a Cell value
internal_methods

Combine SplitVector objects
lyt_args

Layouting function argument conventions
row_paths

Get a list of table row/column paths
names,VTableNodeInfo-method

Names of a TableTree
make_col_df

Column layout summary
manual_cols

Manual column declaration
make_split_fun

Create a custom splitting function
matrix_form,VTableTree-method

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

Create a custom analysis function wrapping an existing function
make_split_result

Construct split result object
no_colinfo

Exported for use in tern
row_footnotes

Referential footnote accessors
prune_table

Recursively prune a TableTree
qtable_layout

Generalized frequency table
rm_all_colcounts

Set all column counts at all levels of nesting to NA
rheader

Create a header
obj_avar

Row attribute accessors
rcell

Cell value constructors
pag_tt_indices

Pagination of a TableTree
reexports

Objects exported from other packages
rbindl_rtables

Row-bind TableTree and related objects
rtable

Create a table
cont_n_allcols

Score functions for sorting TableTrees
rrow

Create an rtable row
simple_analysis

Default tabulation
rrowl

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

Print row/column paths summary
sanitize_table_struct

Sanitize degenerate table structures
rtables-package

rtables: Reporting Tables
LabelRow

Row classes and constructors
section_div

Section dividers accessor and setter
split_funcs

Split functions
spl_variable

Variable associated with a split
spl_context

.spl_context within analysis and split functions
split_cols_by

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

Split function argument conventions
split_rows_by_multivar

Associate multiple variables with rows
split_rows_by

Add rows according to levels of a variable
spl_context_to_disp_path

Translate spl_context to a path to display in error messages
split_cols_by_multivar

Associate multiple variables with columns
sort_at_path

Sorting a table at a specific path
summarize_row_groups

Add a content row of summary counts
toString,VTableTree-method

Convert an rtable object to a string
trim_levels_in_facets

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

TableTree classes
tree_children

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

Summarize table
trim_levels_to_map

Trim levels to map
top_left

Top left material
table_shell

Table shells
subset_cols

Subset a table or row to particular columns
update_ref_indexing

Update footnote indices on a built table
value_formats

Value formats
validate_table_struct

Validate and assert valid table structure
tt_row_path_exists

Pathing
vars_in_layout

List variables required by a pre-data table layout
all_zero_or_na

Trimming and pruning criteria
split_cols_by_cuts

Split on static or dynamic cuts of the data
export_as_tsv

Create enriched flat value table with paths
tt_at_path

Access or set table elements at specified path
trim_rows

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

Add an already calculated table to the layout
VarLevelSplit-class

Split on levels within a variable
Viewer

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

Constructor for Cell Value
MultiVarSplit

Split between two or more different variables
EmptyColInfo

Empty table, column, split objects
add_colcounts

Add the column population counts to the header
add_combo_facet

Add a combination facet in post-processing
add_overall_col

Add overall column