unit_trans | R Documentation |
Achieve numerical conversion between units commonly used in pharmacokinetics. such as: mg to ng, nmol to mol, ml to L, noml to mg, nmol/L to ng/mL.
unit_trans(value, from, to, mw = NULL)
value |
Vector or 1 column form data frame, Must be numeric. |
from |
Vector or 1 column form data frame, Must be character. |
to |
Vector or 1 column form data frame, Must be character. |
mw |
molecular weight,Vector or 1 column form data frame, Must be numeric. |
Numerical Vector.
unit_trans(1,"nmol/L","ng/mL",mw=150000) #return 150
unit_trans(1,"nM","ng/mL",mw=150000) #return 150
unit_trans(1,"nmol","mg",mw=150000) #return 0.15
unit_trans(1,"mg","ug") #return 1000
unit_trans(1,"mL","uL") #return 1000
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.