tabulate.samples: Summarize endpoints for numeric/non-numeric

View source: R/tabulate.samples.r

tabulate.samplesR Documentation

Summarize endpoints for numeric/non-numeric

Description

Given a dataframe and items that describe it, create a tabular summary of any column that contains samples of a analyte from a drug trial, including a summary of any special values.

Usage

tabulate.samples(data, analyte = "conc", oddCode = c("BLOQ", "NS", "M"))

Arguments

data

dataset with endpoints to summarize

analyte

the endpoint to analyze, e.g. "conc" or "effect"

oddCode

charatcer vector with entries that are not considered numeric like 'BLOQ", "<LOQ", or "Missing Sample"

Value

Named vector of numeric and oddCode entries

See Also

whichNumeric

Examples

my.df = data.frame( analyte.1 = c(1,2,3,4,'BLOQ',5,6,'NS',7,'M'),
                   analyte.2 = c(1,2,'BLOQ','M',3,'BLOQ',5,6,'NS',7))
tabulate.samples(data = my.df, analyte = "analyte.1")
tabulate.samples(data = my.df, analyte = "analyte.2")

qPharmetra/qpToolkit documentation built on May 24, 2023, 8:52 a.m.