Oct. 9, 2023, midnight | R on Alan Yeung

R-bloggers www.r-bloggers.com

Combining case_when() and across()

If you want to use case_when() and across() different variables, then here is an example that can do this with the help of the get() and cur_column() functions.

library(tidyverse)


iris_df


Continue reading: A couple of case_when() tricks

example functions library r bloggers reading tidyverse tricks variables

Software Engineer for AI Training Data (School Specific)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Python)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Tier 2)

@ G2i Inc | Remote

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US