describe: Describe a dataset or variable

View source: R/describe.R

describeR Documentation

Describe a dataset or variable

Description

Describe a dataset or variable (depending on input parameters)

Usage

describe(data, var, n, target, out = "text", ...)

Arguments

data

A dataset

var

A variable of the dataset

n

Weights variable for count-data

target

Target variable (0/1 or FALSE/TRUE)

out

Output format ("text"|"list") of variable description

...

Further arguments

Value

Description as table, text or list

Examples

# Load package
library(magrittr)

# Describe a dataset
iris %>% describe()

# Describe a variable
iris %>% describe(Species)
iris %>% describe(Sepal.Length)

explore documentation built on Sept. 11, 2024, 7:40 p.m.