summarize_obj: Summarize an object, typically a vector (a column from a...

View source: R/summarize_data.R

summarize_objR Documentation

Summarize an object, typically a vector (a column from a data.frame)

Description

Summarize an object (typically, a variable -column- in a data.frame). This function is intended to be called by summarize_df

Usage

summarize_obj(obj, n_top = 7)

Arguments

obj

R object to summarize

n_top

Number of top unique elements to include in the summary

Value

a one-row tibble with information about the object such as class, length (number of elements), number of na, number of unique elements, sum, min, max, mean, median, percentiles, most frequent values

Examples

summarize_obj(letters)
summarize_obj(runif(100))

edalfon/efun documentation built on June 23, 2024, 4:17 a.m.