Get and check the data
library(tidyverse)
library(finalfit)
melanoma <- boot::melanoma #F1 here for help page with data dictionary
glimpse(melanoma)
missing_glimpse(melanoma)
ff_glimpse(melanoma)
As was seen before, all variables are coded as numeric and some need recoding to factors.
This is done below for those we are interested in.