I\'m trying to figure out the number of columns\' vector, using length(unique(x)) in r shiny. However, it doesn\'t work in shiny app.
length(unique(x))
The codes are below.