descBy: descBy

View source: R/descBy.R

descByR Documentation

descBy

Description

Describe numeric variables or categorical variables (must be in factor) according or not to another variable in a table.

Usage

descBy(data, vars, labels = NULL, by = NULL)

Arguments

data

name of the dataset

vars

the variables list to describe (numeric or factor)

labels

labels for the variables list

by

variable to compare (must be a factor and have at least two categories)

Value

a descriptive table

Examples

 descBy(iris, "Sepal.Length", by = "Species") 



Epiconcept-Paris/STRAP-epiuf documentation built on Aug. 5, 2024, 3:41 a.m.