writeData: Write Simulx Dataset

View source: R/writeData.R

writeDataR Documentation

Write Simulx Dataset

Description

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

Usage

writeData(project = NULL, filename, sep = ",", ext = "csv", nbdigits = 5)

Arguments

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 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)

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.

Examples

## 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) 

RsSimulx documentation built on April 20, 2023, 5:08 p.m.

Related to writeData in RsSimulx...