set_dataset
Load the dataset given datainfo
set_dataset(model, path_or_df, datatype = NULL)
model
: (Model) Pharmpy modelpath_or_df
: (str or data.frame) Dataset path or dataframedatatype
: (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)