Boxplot dplyr: Error: non-numeric argument to binary operator

Pull the column out as a numeric vector and then do boxplot:

library(stringi)
df <- data.frame(name = stri_rand_strings(10000, 2, pattern = '[a-z]'))

df %>% select(name) %>% count(name) %>% pull(n) %>% boxplot()
#                                       ^^^^^^

Leave a Comment

tech