safe_nested: Safely extract nested field
Description
Extracts a value from nested list structures, returning a default value
if any level of the path is missing.
Usage
safe_nested(obj, ..., default = NA_character_)
Value
The nested field value or default
Arguments
- obj
Object to extract from
- ...
Field names in order (e.g., "author", "id", "value")
- default
Default value if any field missing. Default: NA_character_