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
=> View davis@fosstodon.org profile
text/gemini
This content has been proxied by September (3851b).