Skip to contents

Adds the file column to a data frame

Usage

add_file(data, parent, ext = ".rds")

Arguments

data

A data frame.

parent

A directory.

ext

An extension.

Value

A data frame.

Examples

data <- tibble::tibble(chunk = 1)
add_file(data, parent = tempdir())
#> # A tibble: 1 × 2
#>   chunk file                 
#>   <dbl> <fs::path>           
#> 1     1 /tmp/RtmpgmEn6Z/1.rds