write_adl_feather: Write a feather from Azure Data Lake

Description Usage Arguments Value Examples

View source: R/write_adl_feather.R

Description

Read a feather from Azure Data Lake given a path to the file. 'set_adl_token()' must be run before any file may be read.

Usage

1
write_adl_feather(df, adl_file_path)

Arguments

df

A dataframe to send to Azure _Required parameter._

adl_file_path

A string representing the adl file path. _Required parameter._

Value

a httr message. the 201 message represents a successful write

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 set_adl_token(tenant = "abc123", client_id = "abc123", client_secret = "abc123")

 Day_of_week_str <- c("Monday", "Tuesday",
 "Wednesday", "Thursday", "Friday", "Saturday", "Sunday")

 Day_of_week <- c(0, 1, 2, 3, 4, 5, 6)

 df <- data.frame(Day_of_week_str, Day_of_week)

 write_adl_feather(df = test_df,
 adl_file_path =  "adl://<storename>.azuredatalakestore.net/path/to/file.feather")

alexhallam/flyrod documentation built on Nov. 20, 2019, 7:33 a.m.