Chategorical variables only

Hello,
I'm doing a Shiny App where the user introduce some data frame and can do some data analysis.
I wonder if there is a way in wich, for example, in a selectInput there are only show the chategorical variables of that data.

Thank you

library(tidyverse)

#example_data
(hiris<-head(iris))

#old way - still works and fine to use
select_if(hiris,
          is.factor)

#new way
select(hiris,
       where(is.factor))

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.