writeData | R Documentation |
Format outputs of simulx simulations and write datasets in monolix and pkanalix project format.
writeData(project = NULL, filename, sep = ",", ext = "csv", nbdigits = 5)
project |
(string) a simulx project. If no project specified, the function will run on the project that is already loaded. |
filename |
(string) file path to dataset.
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 |
sep |
(string) (optional) Separator used to write dataset file. (default ",") It must be one of "\t", " ", ";", "," |
ext |
(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 |
nbdigits |
(integer) (optional) number of decimal digits in output file. (default = 5) |
WARNING: writeData
function is not implemented for simulx project with regressors in MonolixSuite version 2020R1
a dataframe if one single simulation, a list of dataframe if multiple replicates.
## Not run:
# rssimulxDemo.smlx is a Simulx project. This demo simulates three groups
# with different dose levels: low, medium and high.
# Groups have the same number of individuals, population parameters,
# distribution of covariates and outputs.
# In this example we write data in a temp directory with the name demo_simulx
# and a txt extension
writeData("rssimulxDemo.smlx", filename = tempfile(), ext = "txt")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.