Skip to contents

Convenience helper: given a data.frame just-loaded by morie_arsau_load_*(), returns the list(name, dtype, valid_values) structure expected by the audit functions.

Usage

morie_specs_from_df(df)

Arguments

df

Loaded data.frame.

Value

List of column specs.

Examples

df <- data.frame(age = c(21, 34, NA), city = c("a", "b", "b"))
str(morie_specs_from_df(df), max.level = 1)
#> List of 2
#>  $ :List of 3
#>  $ :List of 3