Learn R Programming

weathR (version 0.1.0)

safe_collapse: Safe Collapse

Description

Safe Collapse

Usage

safe_collapse(x)

Value

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

Arguments

x

A list to collapse.

Examples

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

Run the code above in your browser using DataLab