Format outputs of simulx simulations and write datasets in monolix and pkanalix project format.
writeDataSmlx(
filename = "simulated_dataset.csv",
sep = ",",
ext = "csv",
nbdigits = 5,
mapObservation = NULL
)
a dataframe if one single simulation, a list of dataframe if multiple replicates.
(string) (optional) file path to dataset. (default "simulated_dataset.csv") In case of multiple replicates, the function creates one dataset per replicate with name $filename_repi If filename contains an extension, it must be "csv" or "txt". If it does not, extension is defined by `ext` argument.
(string) (optional) Separator used to write dataset file. (default ",") It must be one of "\t", " ", ";", ","
(bool) (optional) Extension used to write dataset file. (default "csv") It must be one of "csv", "txt" To defined only if filename with no extension
(integer) (optional) number of decimal digits in output file. (default = 5)
(name vector) (optional) mapping of observation name
WARNING: `writeData` function is not implemented for simulx project with regressors in MonolixSuite version 2020R1