Toot

Written by Michael Chirico on 2024-08-27 at 04:50

fcase() supports vectors in default, making it much more flexible & matching SQL CASE WHEN ... ELSE behavior.

fcase(

type == "fruit" & full_name %in% apples,

"Apple",

type == "vegetable" & full_name %in% broccoli,

"Broccoli",

default = full_name

)

Much obliged to @davis for providing design feedback here!

=> More informations about this toot | View the thread | More toots from michaelchirico@fosstodon.org

Mentions

=> View davis@fosstodon.org profile

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113032182156383237
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
223.278354 milliseconds
Gemini-to-HTML Time
0.781202 milliseconds

This content has been proxied by September (3851b).