# sfl's can take a variety of input formats and will generate names
# if not provided.
sfl(mad, "var", ~ length(.)^2)
# But these can generate unpredictable names in your output.
# Better to set your own names.
sfl(mad = mad, variance = "var", length_sq = ~ length(.)^2)
# sfl's can remove individual skimmers from defaults by passing NULL.
sfl(hist = NULL)
# When working interactively, you don't need to set a type.
# But you should when defining new defaults with `get_skimmers()`.
get_skimmers.my_new_class <- function(column) {
sfl(n_missing, skim_type = "my_new_class")
}
Run the code above in your browser using DataLab