add_filename: Add the data filename as a column

View source: R/dplyr-funcs-augmented.R

add_filenameR 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)

arrow documentation built on Dec. 6, 2022, 5:10 p.m.