Apply a function to each element of a list or vector with automatic checkpointing and recovery. If interrupted, simply run the same code again to resume from where it left off.
Usage
s_map(.x, .f, ..., .id = NULL, .session_id = NULL)
s_map_chr(.x, .f, ..., .id = NULL, .session_id = NULL)
s_map_dbl(.x, .f, ..., .id = NULL, .session_id = NULL)
s_map_int(.x, .f, ..., .id = NULL, .session_id = NULL)
s_map_lgl(.x, .f, ..., .id = NULL, .session_id = NULL)
s_map_dfr(.x, .f, ..., .id = NULL, .session_id = NULL)
s_map_dfc(.x, .f, ..., .id = NULL, .session_id = NULL)Arguments
- .x
A list or atomic vector to map over.
- .f
A function, formula, or vector.
- ...
Additional arguments passed to .f.
- .id
Either a string or NULL (used for dfr/dfc variants).
- .session_id
Character. Optional session ID for this operation. If NULL (default), a session ID is automatically generated from the input data, enabling seamless recovery without user intervention.