In this tutorial, we will learn how to sort columns of a dataframe in alphabetical order. We will first use tidyverse to sort columns of a dataframe using two different ways. And then we will see how to use base R functions to sort the columns. Let us load … [Read more...] about How to sort columns alphabetically
tidyselect
tidyverse all_of(): select columns from a vector
In this tutorial, we will learn about how to select multiple columns from a dataframe by using the column names as a vector at once. tidyverse' tidyselect package has numerous options for selecting columns from a datafame. all_of() is one of the functions in tidyselect that … [Read more...] about tidyverse all_of(): select columns from a vector