Learn R Programming

fastrep (version 0.7)

describe: 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)

Value

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

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

Examples

Run this code
mtcars |>
  fastrep::describe()

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

iris |> fastrep::describe()

Run the code above in your browser using DataLab