write_hdfs: Write a data frame to a file on HDFS.

Description Usage Arguments

View source: R/read-write-hdfs.R

Description

Write a data frame to a file on HDFS.

Usage

1
2
write_hdfs(df, path, write_fn = readr::write_delim, ..., df_argnum = 1,
  file_argnum = 2)

Arguments

df

A data frame.

path

File path on HDFS to write to

write_fn

Function to use to write the data frame to a file (readr::write_csv by default)

...

Additional paramters to pass to write_csv

df_argnum

The position of the data frame argument in write_fn (e.g., x is the first argument in readr::write_csv, object is the first argument in saveRDS)

file_argnum

The position of the file path argument in write_fn (e.g., path is the second argument in readr::write_csv), file is the second argument in saveRDS


ZurichPA/orpheus documentation built on Aug. 29, 2020, 6:56 p.m.