library(tidyverse)
library(tidymodels)
hp_spam <- read_csv("data/hp-spam.csv") |>
mutate(type = as.factor(type))
hp_spam |>
select(type, you, capitalTotal)
# A tibble: 4,601 × 3
type you capitalTotal
<fct> <dbl> <dbl>
1 1 1.93 278
2 1 3.47 1028
3 1 1.36 2259
4 1 3.18 191
5 1 3.18 191
6 1 0 54
7 1 3.85 112
8 1 0 49
9 1 1.23 1257
10 1 1.67 749
# ℹ 4,591 more rows