View source: R/tabulate.samples.r
tabulate.samples | R Documentation |
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.
tabulate.samples(data, analyte = "conc", oddCode = c("BLOQ", "NS", "M"))
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" |
Named vector of numeric and oddCode entries
whichNumeric
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.