将 CSV 文件写入磁盘
用法
write_csv_arrow(
x,
sink,
file = NULL,
include_header = TRUE,
col_names = NULL,
batch_size = 1024L,
na = "",
write_options = NULL,
...
)
参数
- x
data.frame
, RecordBatch, 或 Table- sink
字符串文件路径、连接、URI 或 OutputStream,或文件系统中的路径 (
SubTreeFileSystem
)- file
文件名。指定此项或
sink
,不要同时指定。- include_header
是否写入包含列名的初始标题行
- col_names
与
include_header
相同。指定此项或include_headers
,不要同时指定。- batch_size
一次处理的最大行数。默认为 1024。
- na
用于写入 NA 值的取值。不得包含引号。默认为
""
。- write_options
参见 CSV 写入选项
- ...
其他参数
返回值
输入 x
,不可见。请注意,如果 sink
是 OutputStream,则流将保持打开状态。