writeDataSmlx: Write Simulx Dataset

View source: R/writeDataSmlx.R

writeDataSmlxR Documentation

Write Simulx Dataset

Description

Format outputs of simulx simulations and write datasets in monolix and pkanalix project format.

Usage

writeDataSmlx(
  filename = "simulated_dataset.csv",
  sep = ",",
  ext = "csv",
  nbdigits = 5,
  mapObservation = NULL
)

Arguments

filename

(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.

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)

mapObservation

(name vector) (optional) mapping of observation name

Details

WARNING: 'writeData' function is not implemented for simulx project with regressors in MonolixSuite version 2020R1

Value

a dataframe if one single simulation, a list of dataframe if multiple replicates.


Rsmlx documentation built on Oct. 17, 2023, 5:09 p.m.

Related to writeDataSmlx in Rsmlx...