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.6

License

Apache License 2.0 | file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Joe Zhu

Last Published

April 11th, 2025

Functions in rtables (0.6.6)

analyze

Generate Rows Analyzing Variables Across Columns
as_html

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

Create a table from a layout and data
brackets

Retrieve and assign elements of a TableTree
AnalyzeVarSplit

Define a subset tabulation/analysis
compare_rtables

Compare two rtables
basic_table

Layout with 1 column and zero rows
compat_args

Compatibility Arg Conventions
InstantiatedColumnInfo-class

InstantiatedColumnInfo
clear_indent_mods

Clear All Indent Mods from a Table
collect_leaves

Collect leaves of a table tree
clayout

Column information/structure accessors
asvec

convert to a vector
df_to_tt

Create ElementaryTable from data.frame
cbind_rtables

cbind two rtables
nrow,VTableTree-method

Table Dimensions
cell_values

Retrieve cell values by row and column path
counts_wpcts

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

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

Retrieve or set Content Table from a TableTree
constr_args

Constructor Arg Conventions
drop_facet_levels

Preprocessing Functions for use in make_split_fun
gen_args

General Argument Conventions
in_rows

Create multiple rows in analysis or summary functions
format_rcell

Format rcell
indent

Change indentation of all rrows in an rtable
obj_name,VNodeInfo-method

Methods for generics in the formatters package
get_formatted_cells

get formatted cells
custom_split_funs

Custom Split Functions
horizontal_sep

Access or recursively set header-body separator for tables
head

Head and tail methods
is_rtable

Check if an object is a valid rtable
lyt_args

Layouting Function Arg Conventions
indent_string

Indent Strings
find_degen_struct

Find degenerate (sub)structures within a table (Experimental)
data.frame_export

Generate a Result Data Frame
export_as_docx

Export as word document
insert_row_at_path

Insert Row at Path
VarStaticCutSplit-class

Splits for cutting by values of a numeric variable
make_afun

Create custom analysis function wrapping existing function
length,CellValue-method

Length of a Cell value
list_wrap_x

Returns a function that coerces the return values of f to a list
matrix_form,VTableTree-method

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

Recursively prune a TableTree
pag_tt_indices

Pagination of a TableTree
manual_cols

Manual column declaration
label_at_path

Label at Path
make_col_df

Column Layout Summary
row_paths

Return List with Table Row/Col Paths
names,VTableNodeInfo-method

Names of a TableTree
no_colinfo

Exported for use in tern
rcell

Cell value constructors
obj_avar

Row attribute accessors
row_paths_summary

Print Row/Col Paths Summary
insert_rrow

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

Create a header
row_footnotes

Referential Footnote Accessors
LabelRow

Row classes and constructors
rrow

row
rbindl_rtables

rbind TableTree and related objects
make_split_fun

Create a Custom Splitting Function
qtable_layout

Generalized Frequency Table
make_split_result

Construct split result object
internal_methods

combine SplitVector objects
sort_at_path

Sorting a Table at a Specific Path
simple_analysis

Default tabulation
sf_args

Split Function Arg Conventions
sanitize_table_struct

Sanitize degenerate table structures (Experimental)
reexports

Objects exported from other packages
spl_context

.spl_context within analysis and split functions
cont_n_allcols

Score functions for sorting TableTrees
split_cols_by_multivar

Associate Multiple Variables with Columns
spl_variable

Variable Associated With a Split
spl_context_to_disp_path

Translate spl_context to Path for display in error messages
split_cols_by

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

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

Split functions
all_zero_or_na

Trimming and Pruning Criteria
summarize_rows

summarize_rows
rrowl

rrowl
trim_levels_in_facets

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

Convert an rtable object to a string
rtable

Create a Table
summarize_row_groups

Add a content row of summary counts
table_shell

Table shells
trim_levels_to_map

Trim Levels to map
tree_children

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

TableTree classes
trim_zero_rows

Trim Zero Rows
export_as_tsv

Create Enriched flat value table with paths
vars_in_layout

List Variables required by a pre-data table layout
section_div

Section dividers getter and setter
tt_to_flextable

Create a FlexTable from an rtables table
tt_at_path

Get or set table elements at specified path
value_formats

Value Formats
split_cols_by_cuts

Split on static or dynamic cuts of the data
top_left

Top Left Material (Experimental)
split_rows_by_multivar

Associate Multiple Variables with Rows
update_ref_indexing

Update footnote indexes on a built table
validate_table_struct

Validate and Assert valid table structure (Experimental).
split_rows_by

Add Rows according to levels of a variable
table_structure

Summarize Table
add_existing_table

Add an already calculated table to the layout
EmptyColInfo

Empty table, column, split objects
select_all_levels

Add Combination Levels to split
ManualSplit

Manually defined split
CellValue

Cell Value constructor
Viewer

Display an rtable object in the Viewer pane in RStudio or in a browser
VarLevelSplit-class

Split on levels within a variable
MultiVarSplit

Split between two or more different variables
add_combo_facet

Add a combination facet in postprocessing
add_colcounts

Add the column population counts to the header
add_overall_level

Add an virtual 'overall' level to split
add_overall_col

Add Overall Column
additional_fun_params

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

Generate Rows Analyzing Different Variables Across Columns
append_topleft

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