describe {fastrep}R Documentation

describe

Description

In the base R we have the function summary, but the output is no by default a data.frame, so describe is an enhancement of this function to summarize data frames.

Usage

describe(obj, na_rm = TRUE)

Arguments

obj

Object used to create the table. data.frame, list or environment (or object coercible by as.data.frame to a data.frame)

na_rm

option to remove NA from variables

Value

A tibble with n rows where n is equal to ncol(obj) and columns with the summary metrics

Examples

mtcars |>
  fastrep::describe()

airquality |> fastrep::describe(na_rm = FALSE)

iris |> fastrep::describe()


[Package fastrep version 0.7 Index]