changeMolarMass: Change or set the molar mass of a drug.

Description Usage Arguments Details Value Author(s) References Examples

View source: R/dataflow.R

Description

The function readDBFData automatically downlads information regarding molar mass of the drugs. The information is e.g. used for changing unit in a plot.

Usage

1
changeMolarMass(A.data, drug, mol.mass, save = TRUE, shiny.input = NULL)

Arguments

A.data

An A.data object created by the function readDBFData

drug

Character indicating the drug for which the molar mass is to be changed.

mol.mass

Numeric value specifying the molar mass of the drug

save

Should the data be saved for later use. Defeaults to TRUE.

shiny.input

Used for the shiny webtool

Details

When it is not possible to find information of mol.mass it is necessary to add it yourself.

Value

An A.data object with the molar mass changed for specified drug.

Author(s)

The function was written at department of haematology, Aalborg University Hospital and maintained by Steffen Falgreen.

References

Steffen Falgreen et al. Exposure time independent summary statistics for assessment of drug dependent cell line growth inhibition (2013)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
require(DoseR)
## load Dose Response data
data(A.data)

## print of the A.data object
print.Absorbance(A.data)

## Say the molar mass of Rituximab was wrong and you wanted to set it 
## to another value e.g. 100000.

A.data <- 
   changeMolarMass(A.data, drug = "Rituximab", 
   mol.mass = 100000, save = FALSE) 
   
# Setting save to TRUE ensures that the molar mass is not overwritten 
# when using the function readDBFdata with update set to TRUE.

HaemAalborg/DoseR documentation built on Jan. 17, 2021, 7:40 a.m.