Write a csv file compatible with nonmem
write_nonmem(
x,
file,
sep = ",",
row.names = FALSE,
na = ".",
quote = FALSE,
...
)
dataframe to be written to csv
character string naming a file or connection open for writing.
field string separator, defaults to comma (",")
logical value whether to include row names
value for NA
whether character or factor columns should be surrounded by double quotes
remaining arguments passed to data.table::fwrite
nonmem uses '.' for NA values, does not like quotes in column names and does not handle row names, so these are all presets