read_hdfs: Read a file on HDFS into a data frame.

Description Usage Arguments Details Value

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

Description

read_hdfs reads a file on HDFS into a data frame

Usage

1
read_hdfs(path, read_fn = readr::read_delim, ..., file_argnum = 1)

Arguments

path

File path on HDFS of the file to read in.

read_fn

Function to use to read the file (readr::read_delim by default)

...

Additional parameters to pass to read_fn

file_argnum

The position of the file path argument in read_fn (e.g., file is the first argument in readr::read_delim, path is the first argument in readxl::read_excel)

Details

This function reads a file on HDFS into a data frame. By default, it will use read_delim in readr to read the file. If no delimiter is specified and read_delim is used, it will use a comma as the delimiter.

Value

The object read by read_fn.


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