DEV Community

Toolloom
Toolloom

Posted on Originally published at toolloom.com on

How to Conditionally Add a Named Element to a List in Base R

When constructing lists in R, a common requirement is to include a specific named element only if a condition evaluates to TRUE. Often, developers attempt something intuitive like this:myfun <- fun... Read More

Top comments (0)