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

620

Version

0.2.2

License

Apache License (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Tim Barnett

Last Published

January 10th, 2025

Functions in datacutr (0.2.2)

special_dm_cut

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

Function to generate datacut summary file
impute_dcutdtc

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

Imputes Partial Date/Time SDTMv Variables
datacutr_dm

Demographics SDTMv Dataset
datacutr_sc

Subject Characteristics SDTMv Dataset
create_dcut

Create Datacut Dataset (DCUT)
datacutr-package

datacutr: SDTM Datacut
datacutr_ds

Disposition SDTMv Dataset
apply_cut

Applies the datacut based on the datacut flagging variables
datacutr_ts

Trial Summary SDTMv Dataset
process_cut

Wrapper function to prepare and apply the datacut of SDTMv datasets
pt_cut

Patient Cut
datacutr_ae

Adverse Events SDTMv Dataset
datacutr_fa

Findings About Events or Interventions SDTMv Dataset
date_cut

xxSTDTC or xxDTC Cut
datacutr_lb

Laboratory Test Results SDTMv Dataset
drop_temp_vars

Drops Temporary Variables From a Dataset