Learn R Programming

explore (version 1.3.4)

describe: Describe a dataset or variable

Description

Describe a dataset or variable (depending on input parameters)

Usage

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

Value

Description as table, text or list

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

Examples

Run this code
# Load package
library(magrittr)

# Describe a dataset
iris %>% describe()

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

Run the code above in your browser using DataLab