Learn R Programming

datacutr

SDTM Datacut in R

Purpose

To provide an open source tool that enables the pharmaceutical programming community to apply a data cut to SDTM data in R.

Installation

The package is available from CRAN and can be installed by running the following,

install.packages("datacutr")

To install the latest development version of the package directly from GitHub use the following code::

if (!requireNamespace("remotes", quietly = TRUE)) {
  install.packages("remotes")
}

remotes::install_github("pharmaverse/datacutr", ref = "devel")

Scope

This package works with tabulation data following an SDTM standard. For ease of processing, the assumption is that supplemental qualifiers have been combined with their parent domain prior to the application of the cut process (sometimes labeled as SDTMv). The user has the flexibility to select the type of cut applied to each SDTM domain (either no cut, patient cut, date cut, or a special DM cut).

References and Documentation

  • Please go to Get Started section to start using {datacutr}
  • Please go to Function Reference section for a break down of all functions created by {datacutr}
  • Please see the Contribution Model for how to get involved with making contributions

Contact

The following support and communications between user and developer community is recommended:

  • Slack - for informal discussions, Q&A and building our user community. If you don't have access, use this link to join the pharmaverse Slack workspace
  • GitHub Issues - for direct feedback, enhancement requests or raising bugs

Copy Link

Version

Install

install.packages('datacutr')

Monthly Downloads

192

Version

0.2.4

License

Apache License (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Tim Barnett

Last Published

November 14th, 2025

Functions in datacutr (0.2.4)

datacutr_dm

Demographics SDTMv Dataset
datacutr_fa

Findings About Events or Interventions SDTMv Dataset
datacutr_ds

Disposition SDTMv Dataset
datacutr_ts

Trial Summary SDTMv Dataset
datacutr_sc

Subject Characteristics SDTMv Dataset
datacutr_lb

Laboratory Test Results SDTMv Dataset
datacutr_ae

Adverse Events SDTMv Dataset
apply_cut

Applies the datacut based on the datacut flagging variables
datacutr-package

datacutr: SDTM Datacut
create_dcut

Create Datacut Dataset (DCUT)
date_cut

xxSTDTC or xxDTC Cut
pt_cut

Patient Cut
impute_sdtm

Imputes Partial Date/Time SDTMv Variables
read_out

Function to generate datacut summary file
impute_dcutdtc

Imputes Partial Date/Time Data Cutoff Variable (DCUTDTC)
drop_temp_vars

Drops Temporary Variables From a Dataset
special_dm_cut

Special DM Cut to reset Death variable information past cut date
process_cut

Wrapper function to prepare and apply the datacut of SDTMv datasets