Skip to contents

Suitable for JSON / RDS round-trips.

Usage

morie_dataset_profile_to_list(profile)

Arguments

profile

A morie_dataset_profile (output of morie_dataset_profile()).

Value

Nested named list.

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"