View source: R/functions_wrapper.R
set_dataset | R Documentation |
Load the dataset given datainfo
set_dataset(model, path_or_df, datatype = NULL)
model |
(Model) Pharmpy model |
path_or_df |
(str or data.frame) Dataset path or dataframe |
datatype |
(str (optional)) Type of dataset (optional) |
(Model) Pharmpy model with new dataset and updated datainfo
## Not run:
model <- load_example_model("pheno")
model <- unload_dataset(model)
dataset_path <- model$datainfo$path
model$dataset is NULL
model <- set_dataset(model, dataset_path, datatype='nonmem')
model$dataset
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.