If applying a function to a data frame that take a long time, this function may help to estimate the total processing duration.

process_df_chunked(df, callback, chunk_size = 100, progress = TRUE, ...)

Arguments

df

data frame

callback

A callback function to call on each chunk

chunk_size

The number of rows to include in each chunk

progress

bool. Display a progress message stating time taken after each chunk is processed.

...

additional arguments passed on to callback function.

Value

a dataframe