repfun0.1.2 package

Create Tables, Listings and Figures using Functions Styled after SAS™ Macros

ru_setdata

Append data sets even when variables do not match

ru_datetime

Add numeric datetimes to data frame that only has character versions.

ru_denorm

Transpose a Data Frame

ru_expvarlist

Expand SAS Style Variable/Column List

copydata

Copy package data to the directory specified.

pipe

Pipe operator

rem_pg_nums

Remove floating page numbers from RTF files.

repfun-package

repfun: Create Tables, Listings and Figures using Functions Styled aft...

rs_setup

Pass values to setup function and the global environment will be arran...

ru_addbignvar

Assign Big N to Data Frame.

ru_addpage

Add a Page Number Column to an Existing Dataframe

ru_addsupp

Cobmine an SDTM domain with its corresponding Supplemental data set

ru_align

Align Columns for Reporting

ru_contents

Generate proc contents of data frame similar to that generated by SAS

ru_data2codelist

Return a list with codelist, code and label based on input codelist da...

ru_datacompare

Compare 2 data frames and report differences.

ru_list

R function to mimic the SAS macro %tu_list.

ru_load_library

Load a list of libraries

ru_fillcodedcode

Fill missing code/decode records

ru_fillna

Fill NA values with specified values or zeros/blanks by default.

ru_freq

Create Percentage based on Numerator and Denominator Data

ru_getdata

Assign Big N to Data Frame.

ru_groupbyvars

Modify groupbyvars by adding or removing decode vars.

ru_labels

Assign labels to variables in a data frame

ru_libname

Automate retrieval of data sets/frames in specified folder.

ru_stackvar

Stack Columns of a Dataframe into New Column

ru_sumstats

Calculate Descriptive Statistics

ru_width_rtf

Create a List of Relative Widths of Columns for RTF Outputs

Mimic the style of traditional reporting macros for clinical trials. The purpose is to generate tables, listings and figures that support clinical research. This package is well suited for firms or individuals who wish to incorporate R without changing their ways of working as it follows a traditional clinical research workflow. Invoke functions (instead of macros) to summarize data and produce formatted reports. This package differs from others in that it includes tools (wrappers) for both analyzing and reporting data.

  • Maintainer: Chris Rook
  • License: Apache License (== 2.0)
  • Last published: 2026-01-26