Learn R Programming

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

rtables

[![Check

Copy Link

Version

Install

install.packages('rtables')

Monthly Downloads

3,275

Version

0.6.1

License

Apache License 2.0 | file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Gabriel Becker

Last Published

April 11th, 2025

Functions in rtables (0.6.1)

ManualSplit

Manually defined split
add_colcounts

Add the column population counts to the header
MultiVarSplit

Split between two or more different variables
add_existing_table

Add an already calculated table to the layout
asvec

convert to a vector
as_html

Convert an rtable object to a shiny.tag html object
basic_table

Layout with 1 column and zero rows
append_topleft

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

Add Overall Column
add_overall_level

Add an virtual 'overall' level to split
analyze_colvars

Generate Rows Analyzing Different Variables Across Columns
analyze

Generate Rows Analyzing Variables Across Columns
compare_rtables

Compare two rtables
brackets

Retrieve and assign elements of a TableTree
clear_indent_mods

Clear All Indent Mods from a Table
clayout

Column information/structure accessors
constr_args

Constructor Arg Conventions
compat_args

Compatibility Arg Conventions
collect_leaves

Collect leaves of a table tree
build_table

Create a table from a layout and data
cbind_rtables

cbind two rtables
InstantiatedColumnInfo-class

InstantiatedColumnInfo
export_as_pdf

Export as PDF
AnalyzeVarSplit

Define a subset tabulation/analysis
cell_values

Retrieve cell values by row and column path
do_base_split

Apply Basic Split (For Use In Custom Split Functions)
drop_facet_levels

Preprocessing Functions for use in make_split_fun
df_to_tt

Create ElementaryTable from data.frame
VarStaticCutSplit-class

Splits for cutting by values of a numeric variable
content_table

Retrieve or set Content Table from a TableTree
horizontal_sep

Access or recursively set header-body separator for tables
counts_wpcts

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

Custom Split Functions
insert_row_at_path

Insert Row at Path
insert_rrow

[DEPRECATED] insert rrows at (before) a specific location
indent_string

Indent Strings
format_rcell

Format rcell
indent

Change indentation of all rrows in an rtable
gen_args

General Argument Conventions
nrow,VTableTree-method

Table Dimensions
obj_name,VNodeInfo-method

Methods for generics in the formatters package
get_formatted_cells

get formatted cells
head

Head and tail methods
in_rows

Create multiple rows in analysis or summary functions
label_at_path

Label at Path
list_wrap_x

Returns a function that coerces the return values of f to a list
internal_methods

combine SplitVector objects
is_rtable

Check if an object is a valid rtable
row_paths

Return List with Table Row/Col Paths
make_split_fun

Create a Custom Splitting Function
prune_table

Recursively prune a TableTree
length,CellValue-method

Length of a Cell value
names,VTableNodeInfo-method

Names of a TableTree
path_enriched_df

Transform TableTree object to Path-Enriched data.frame
matrix_form,VTableTree-method

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

Pagination of a TableTree
no_colinfo

Exported for use in tern
lyt_args

Layouting Function Arg Conventions
make_split_result

Construct split result object
row_paths_summary

Print Row/Col Paths Summary
manual_cols

Manual column declaration
LabelRow

Row classes and constructors
reexports

Objects exported from other packages
row_footnotes

Referential Footnote Accessors
make_col_df

Column Layout Summary
make_afun

Create custom analysis function wrapping existing function
rheader

Create a header
obj_avar

Row attribute accessors
rtables_aligns

Alignment utils
sort_at_path

Sorting a Table at a Specific Path
rtable

Create a Table
sf_args

Split Function Arg Conventions
split_funcs

Split functions
spl_variable

Variable Associated With a Split
split_cols_by

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

Associate Multiple Variables with Columns
spl_context

.spl_context within analysis and split functions
spl_context_to_disp_path

Translate spl_context to Path for display in error messages
rrow

row
rbindl_rtables

rbind TableTree and related objects
rcell

Cell value constructors
rrowl

rrowl
simple_analysis

Default tabulation
cont_n_allcols

Score functions for sorting TableTrees
tostring

Convert an rtable object to a string
split_rows_by

Add Rows according to levels of a variable
tree_children

Retrieve or set the direct children of a Tree-style object
ElementaryTable-class

TableTree classes
split_rows_by_multivar

Associate Multiple Variables with Rows
trim_zero_rows

Trim Zero Rows
table_shell

Table shells
all_zero_or_na

Trimming and Pruning Criteria
trim_rows

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

summarize_rows
trim_levels_in_facets

Trim Levels of Another Variable From Each Facet (Postprocessing split step)
summarize_row_groups

Add a content row of summary counts
export_as_tsv

Create Enriched flat value table with paths
trim_levels_to_map

Trim Levels to map
tt_to_flextable

Create a FlexTable object representing an rtables TableTree
tt_at_path

Get or set table elements at specified path
value_formats

Value Formats
update_ref_indexing

Update footnote indexes on a built table
table_structure

Summarize Table
top_left

Top Left Material (Experimental)
split_cols_by_cuts

Split on static or dynamic cuts of the data
vars_in_layout

List Variables required by a pre-data table layout
add_combo_facet

Add a combination facet in postprocessing
VarLevelSplit-class

Split on levels within a variable
EmptyColInfo

Empty table, column, split objects
select_all_levels

Add Combination Levels to split
Viewer

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

Cell Value constructor