Movatterモバイル変換


[0]ホーム

URL:


Skip to contents

Write CSV file to disk

Source:R/csv.R
write_csv_arrow.Rd

Write CSV file to disk

Usage

write_csv_arrow(x,sink,  file=NULL,  include_header=TRUE,  col_names=NULL,  batch_size=1024L,  na="",  write_options=NULL,...)

Arguments

x

data.frame,RecordBatch, orTable

sink

A string file path, connection, URI, orOutputStream, or path in a filesystem (SubTreeFileSystem)

file

file name. Specify this orsink, not both.

include_header

Whether to write an initial header line with column names

col_names

identical toinclude_header. Specify this orinclude_headers, not both.

batch_size

Maximum number of rows processed at a time. Default is 1024.

na

value to write for NA values. Must not contain quote marks. Defaultis"".

write_options

seeCSV write options

...

additional parameters

Value

The inputx, invisibly. Note that ifsink is anOutputStream,the stream will be left open.

Examples

tf<-tempfile()on.exit(unlink(tf))write_csv_arrow(mtcars,tf)

[8]ページ先頭

©2009-2026 Movatter.jp