How to select only numeric columns in a dataframe

In this tutorial, we will learn how to select the columns that are numeric from a dataframe containing columns of different datatype. We will use dplyr’s select() function in combination with where() and is.numeric() functions to select the numeric columns. Let us first load tidyverse and palmer penguin datasets to illustrate selecting numerical variables. select()… Continue reading How to select only numeric columns in a dataframe

Exit mobile version