
Serialize a dataset profile to a plain nested list.
Source:R/dataset.R
morie_dataset_profile_to_list.RdSuitable for JSON / RDS round-trips.
Arguments
- profile
A
morie_dataset_profile(output ofmorie_dataset_profile()).
Examples
df <- data.frame(x = c(0, 1, 0, 1), y = c(1, 2, 3, 4))
p <- morie_dataset_profile(df, hint_treatment = "x", hint_outcome = "y")
out <- morie_dataset_profile_to_list(p)
names(out)
#> [1] "n_rows" "n_cols" "suggested_treatment"
#> [4] "suggested_outcome" "suggested_weights" "columns"