Learn R Programming

disk.frame (version 0.7.1)

get_chunk_ids: 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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab