add_filename {arrow}R Documentation

Add the data filename as a column

Description

This function only exists inside arrow dplyr queries, and it only is valid when quering on a FileSystemDataset.

Usage

add_filename()

Value

A FieldRef Expression that refers to the filename augmented column.

Examples

## Not run: 
open_dataset("nyc-taxi") %>%
  mutate(file = add_filename())

## End(Not run)

[Package arrow version 13.0.0.1 Index]