Learn R Programming

pharmr (version 2.2.0)

write_dataset: write_dataset

Description

Write dataset to file and updates the datainfo path

Curretly supports csv files.

Usage

write_dataset(model, path = NULL, force = FALSE, type = "csv")

Value

(Model) Updated Pharmpy model

Arguments

model

(Model) Pharmpy model

path

(str (optional)) Destination path. Default is to use original path with .csv suffix.

force

(logical) Overwrite file with same path. Default is FALSE.

type

(str) Can only be csv

Examples

Run this code
if (FALSE) {
model <- load_example_model("pheno")
model <- write_dataset(model, path="newdataset$csv")
}

Run the code above in your browser using DataLab