write_dataset: write_dataset

View source: R/functions_wrapper.R

write_datasetR Documentation

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

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

Value

(Model) Updated Pharmpy model

Examples

## Not run: 
model <- load_example_model("pheno")
model <- write_dataset(model, path="newdataset$csv")

## End(Not run)


pharmr documentation built on May 28, 2026, 5:08 p.m.