Skip to content

Commit e600f5e

Browse files
committed
consolidate other PR here
1 parent 8f6968e commit e600f5e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/TidierFiles.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,8 @@ function write_csv(
413413
file::String;
414414
missing_value::String = "",
415415
append::Bool = false,
416+
delim = ",",
417+
decimal = ".",
416418
col_names::Bool = true,
417419
eol::String = "\n",
418420
num_threads::Int = Threads.nthreads())
@@ -423,6 +425,8 @@ function write_csv(
423425
x,
424426
append = append,
425427
header = col_names && !append,
428+
delim = delim,
429+
decimal = decimal,
426430
missingstring = missing_value,
427431
newline = eol,
428432
threaded = num_threads > 1 )

src/docstrings.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ Write a DataFrame to a CSV (comma-separated values) file.
199199
- `x`: The DataFrame to write to the CSV file.
200200
- `file`: The path to the output CSV file.
201201
- `missing_value`: = "": The string to represent missing values in the output file. Default is an empty string.
202+
- `delim`: delimiter for file. can be a character or string. default `,`
203+
- `decimal`: decimal for file. supports characters only. default `.`
202204
- `append`: Whether to append to the file if it already exists. Default is false.
203205
- `col_names`: = true: Whether to write column names as the first line of the file. Default is true.
204206
- `eol`: The end-of-line character to use in the output file. Default is the newline character.

0 commit comments

Comments
 (0)