get_chunk_ids: Get the chunk IDs and files names

View source: R/get_chunk_ids.r

get_chunk_idsR Documentation

Get the chunk IDs and files names

Description

Get the chunk IDs and files names

Usage

get_chunk_ids(df, ..., full.names = FALSE, strip_extension = TRUE)

Arguments

df

a disk.frame

...

passed to list.files

full.names

If TRUE returns the full path to the file, Defaults to FALSE

strip_extension

If TRUE then the file extension in the chunk_id is removed. Defaults to TRUE

Examples

cars.df = as.disk.frame(cars)

# return the integer-string chunk IDs
get_chunk_ids(cars.df)

# return the file name chunk IDs
get_chunk_ids(cars.df, full.names = TRUE)

# return the file name chunk IDs with file extension
get_chunk_ids(cars.df, strip_extension = FALSE)

# clean up cars.df
delete(cars.df)

disk.frame documentation built on Aug. 24, 2023, 5:09 p.m.