write_df_to_csv_in_s3: Write an in-memory data frame to a csv file stored in S3

View source: R/write.R

write_df_to_csv_in_s3R Documentation

Write an in-memory data frame to a csv file stored in S3

Description

Write an in-memory data frame to a csv file stored in S3

Usage

write_df_to_csv_in_s3(df, s3_path, overwrite = FALSE, multipart = TRUE, ...)

Arguments

df

A data frame you want to upload to S3.

s3_path

A character string containing the full path to where the file should be stored in S3, including any directory names and the bucket name.

overwrite

A logical indicating whether to overwrite the file if it already exists.

multipart

A logical indicating whether to use multipart uploads. See http://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html. If df is less than 100 MB when written to csv, this is ignored.

Value

Returns nothing

Examples

write_df_to_csv_in_s3(df, "alpha-everyone/delete/my_csv.csv")

moj-analytical-services/Rs3tools documentation built on Aug. 9, 2024, 1:27 a.m.