describe {explore} | R 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)
[Package explore version 1.3.1 Index]