Skip to content

Commit eb17a34

Browse files
Update man/fwrite.Rd
Co-authored-by: Michael Chirico <[email protected]>
1 parent e452ac9 commit eb17a34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

man/fwrite.Rd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fwrite(x, file = "", append = FALSE, quote = "auto",
6363
\item{bom}{If \code{TRUE} a BOM (Byte Order Mark) sequence (EF BB BF) is added at the beginning of the file; format 'UTF-8 with BOM'.}
6464
\item{verbose}{Be chatty and report timings?}
6565
\item{encoding}{ The encoding of the strings written to the CSV file. Default is \code{""}, which means writing raw bytes without considering the encoding. Other possible options are \code{"UTF-8"} and \code{"native"}. }
66-
\item{forceDecimal}{ Should decimal points be forced for whole numbers in numeric columns? When \code{TRUE}, whole numbers like \code{c(1.0, 2.0, 3.0)} will be written as \code{1., 2., 3.} instead of \code{1, 2, 3}. Default is \code{FALSE}. }
66+
\item{forceDecimal}{ Should decimal points be forced for whole numbers in numeric columns? When \code{FALSE}, the default, whole numbers like \code{c(1.0, 2.0, 3.0)} will be written as \samp{1, 2, 3} i.e., dropping \code{dec}. }
6767
}
6868
\details{
6969
\code{fwrite} began as a community contribution with \href{https://github.com/Rdatatable/data.table/pull/1613}{pull request #1613} by Otto Seiskari. This gave Matt Dowle the impetus to specialize the numeric formatting and to parallelize: \url{https://h2o.ai/blog/2016/fast-csv-writing-for-r/}. Final items were tracked in \href{https://github.com/Rdatatable/data.table/issues/1664}{issue #1664} such as automatic quoting, \code{bit64::integer64} support, decimal/scientific formatting exactly matching \code{write.csv} between 2.225074e-308 and 1.797693e+308 to 15 significant figures, \code{row.names}, dates (between 0000-03-01 and 9999-12-31), times and \code{sep2} for \code{list} columns where each cell can itself be a vector.

0 commit comments

Comments
 (0)