I've got 34 variables. One is a factor (continente) which has 4 levels and "PAT_ONCO" is one type of hospital patients. I want to group by continent but I can´t use summarize because continent doesn't have exactly 2 levels
kable(papeR::summarize(TELEMED_COVID_finales[, c( "continente", "PAT_ONCO")], format=
"numeric", group="continente", test = TRUE)) %>%
kable_classic(full_width = F, html_font = "Cambria")
Error in t.test.formula(formula = PAT_ONCO ~ continente, data =
list(continente = c(4L, : grouping factor must have exactly 2 levels