Learn R Programming

SciencesPo (version 0.3.8.27)

tableau: Proportion Table for Univariate Analysis

Description

Produces a latex-like table of the variable proportions.

Usage

tableau(var, title=NULL)

Arguments

var
is the vector or the object to be computed proportions.
title
A character vector as title.

Value

  • A data frame object.

References

http://danielmarcelino.com/SciencePo

Examples

Run this code
x <- rep(1:5, 100)

cap <- "My Table of Proportions"

tableau(x, title = cap)

Run the code above in your browser using DataLab