safe_collapse: Safe Collapse

View source: R/08-active_alerts.R

safe_collapseR Documentation

Safe Collapse

Description

Safe Collapse

Usage

safe_collapse(x)

Arguments

x

A list to collapse.

Value

A comma delimited version of your input list, or NA when the input list is blank.

Note

This is a helper function that is used to collapse a list into a string, and is used in building the active warnings dataset.

Examples

safe_collapse(c("This is one", "And this is another one"))

weathR documentation built on April 4, 2025, 1:38 a.m.