
Build a list of column specs from a parsed CSV header.
Source:R/audit_variables.R
morie_specs_from_df.RdConvenience helper: given a data.frame just-loaded by
morie_arsau_load_*(), returns the
list(name, dtype, valid_values) structure expected by the
audit functions.
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