spark_write_csv: Write a 'spark_tbl' to CSV format

Description Usage Arguments Details

View source: R/read-write.R

Description

Write a spark_tbl to a tabular (typically, comma-separated) file.

Usage

1
spark_write_csv(.data, path, mode = "error", partition_by = NULL, ...)

Arguments

.data

a spark_tbl

path

string, the path where the file is to be saved.

mode

string, usually "error" (default), "overwrite", "append", or "ignore"

partition_by

string, column names to partition by on disk

...

any other named options. See details below.

Details

Many other options can be set using the .... Some popular ones include header = T or sep = ",". A full list can be found here: https://spark.apache.org/docs/latest/api/java/org/apache/spark/sql/DataFrameWriter.html#csv-java.lang.String-


danzafar/tidyspark documentation built on Sept. 30, 2020, 12:19 p.m.