Learn R Programming

pharmr (version 1.4.0)

write_csv: write_csv

Description

Write dataset to a csv file and updates the datainfo path

Usage

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

Value

(Model) Updated model object

Arguments

model

(Model) Model whose dataset to write to file

path

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

force

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

Examples

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

Run the code above in your browser using DataLab