convert_units_from_list | R Documentation |
convert_units_from_list converts units for all output columns provided
convert_units_from_list(.df, .ul)
.df |
dataframe |
.ul |
unit list with name/value |
library(dplyr)
Theoph <- set_units_from_list(Theoph, list(Wt = "kg", conc = "mg/L", Dose = "mg/kg"))
Theoph <- Theoph %>% mutate(Amt = Dose*Wt)
convert_units_from_list(Theoph, list(Amt = "g"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.