Skip to contents

Interval / ratio columns get mean/sd/min/q25/median/q75/max; nominal / ordinal columns get a top_counts list of value -> count for the top ten levels.

Usage

morie_dataset_summarize_column(x, level)

Arguments

x

A vector.

level

Inferred measurement level (one of nominal/ordinal/ interval/ratio).

Value

Named list of summary statistics.

Examples

res <- try(morie_dataset_summarize_column(rnorm(50), "value"))
if (!inherits(res, "try-error")) str(res, max.level = 1)
#> List of 1
#>  $ top_counts:List of 10