write_csv: write_csv

View source: R/functions_wrapper.R

write_csvR Documentation

write_csv

Description

Write dataset to a csv file and updates the datainfo path

Usage

write_csv(model, path = NULL, force = FALSE)

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.

Value

(Model) Updated Pharmpy model

Examples

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

## End(Not run)


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