dplyr case_when() to create new variable using multiple conditions

In this tutorial, we will learn how to use dplyr’s case_when() function to create a new variable based on multiple conditions. dplyr’s case_when() function offers a genereal solution when you might needed multiple if_else() conditions. In this blog post, we’ll explore case_when() function with multiple examples. Let us start with creating a simple data frame… Continue reading dplyr case_when() to create new variable using multiple conditions

Exit mobile version