dplyr contains(): select columns that contains a string

In this tutorial, we will learn how to select columns, whose names contains a string using dplyr’s contains() function. dplyr’s contains() function belongs to a family helper functions to select columns like starts_with() and ends_with(). First we will see a simple example of using single string and selecting all columns that contains the string. And… Continue reading dplyr contains(): select columns that contains a string

Exit mobile version