write_csv function

write_csv

write_csv

Write dataset to a csv file and updates the datainfo path

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

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.

Returns

(Model) Updated model object

Examples

## Not run: model <- load_example_model("pheno") model <- write_csv(model, path="newdataset$csv") ## End(Not run)
  • Maintainer: Rikard Nordgren
  • License: LGPL (>= 3)
  • Last published: 2024-12-04